From 2bdb4906ec3cae3d7c7eafb310283d3ed52837b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 23 Nov 2021 19:02:49 -0500 Subject: [PATCH] test: upgrade.runParticular --- test/upgrade.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/upgrade.js b/test/upgrade.js index 9d934cc404..034686874e 100644 --- a/test/upgrade.js +++ b/test/upgrade.js @@ -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)); + }); });