From 8d22141e8800af8b767e496176ed806ee616ae44 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 20 Sep 2023 19:05:56 +0200 Subject: [PATCH] Adding object managers init to tests --- test/backend/unit/middlewares/admin/SettingsMWs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/backend/unit/middlewares/admin/SettingsMWs.ts b/test/backend/unit/middlewares/admin/SettingsMWs.ts index fadc5256..ad20f8ad 100644 --- a/test/backend/unit/middlewares/admin/SettingsMWs.ts +++ b/test/backend/unit/middlewares/admin/SettingsMWs.ts @@ -21,6 +21,7 @@ describe('Settings middleware', () => { beforeEach(async () => { await ObjectManagers.reset(); await fs.promises.rm(tempDir, {recursive: true, force: true}); + await ObjectManagers.InitSQLManagers(); }); it('should save empty enforced users settings', (done: (err?: any) => void) => {