mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: upgrade.runParticular
This commit is contained in:
@@ -26,4 +26,10 @@ describe('Upgrade', () => {
|
||||
await db.set('schemaDate', 1);
|
||||
await upgrade.run();
|
||||
});
|
||||
|
||||
it('should run particular upgrades', async () => {
|
||||
const files = await upgrade.getAll();
|
||||
await db.set('schemaDate', 1);
|
||||
await upgrade.runParticular(files.slice(0, 2));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user