From 4ab60098e076fbd774cd6d282cb07fe451596b08 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 30 Jul 2023 14:49:55 +0200 Subject: [PATCH] Improving settingsTest #683 --- test/backend/unit/middlewares/admin/SettingsMWs.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/backend/unit/middlewares/admin/SettingsMWs.ts b/test/backend/unit/middlewares/admin/SettingsMWs.ts index de55023f..7a1ce7fb 100644 --- a/test/backend/unit/middlewares/admin/SettingsMWs.ts +++ b/test/backend/unit/middlewares/admin/SettingsMWs.ts @@ -40,6 +40,7 @@ describe('Settings middleware', () => { expect(Config.Users.enforcedUsers.length).to.be.equal(0); done(); } catch (err) { + console.error(err); done(err); } }; @@ -48,6 +49,8 @@ describe('Settings middleware', () => { }); it('should save enforced users settings', (done: (err?: any) => void) => { + + ServerEnvironment.sendMailAvailable = false; const req: any = { session: {}, sessionOptions: {}, @@ -76,6 +79,7 @@ describe('Settings middleware', () => { done(); }).catch(done); } catch (err) { + console.error(err); done(err); } };