From 1df147401f3a697e44034f684974c6fe02065596 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 30 Jul 2023 15:45:46 +0200 Subject: [PATCH] Improving settingsTest #683 --- test/backend/unit/middlewares/admin/SettingsMWs.ts | 2 ++ test/backend/unit/model/sql/IndexingManager.spec.ts | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/backend/unit/middlewares/admin/SettingsMWs.ts b/test/backend/unit/middlewares/admin/SettingsMWs.ts index 7a1ce7fb..a159def3 100644 --- a/test/backend/unit/middlewares/admin/SettingsMWs.ts +++ b/test/backend/unit/middlewares/admin/SettingsMWs.ts @@ -23,6 +23,7 @@ describe('Settings middleware', () => { it('should save empty enforced users settings', (done: (err?: any) => void) => { ServerEnvironment.sendMailAvailable = false; + Config.Environment.sendMailAvailable = false; const req: any = { session: {}, sessionOptions: {}, @@ -51,6 +52,7 @@ describe('Settings middleware', () => { it('should save enforced users settings', (done: (err?: any) => void) => { ServerEnvironment.sendMailAvailable = false; + Config.Environment.sendMailAvailable = false; const req: any = { session: {}, sessionOptions: {}, diff --git a/test/backend/unit/model/sql/IndexingManager.spec.ts b/test/backend/unit/model/sql/IndexingManager.spec.ts index 08358206..a79d3a09 100644 --- a/test/backend/unit/model/sql/IndexingManager.spec.ts +++ b/test/backend/unit/model/sql/IndexingManager.spec.ts @@ -711,7 +711,6 @@ describe('IndexingManager', (sqlHelper: DBTestHelper) => { const albums = await am.getAlbums(); expect(albums[0].preview).to.be.an('object'); delete albums[0].preview; - console.log(albums); expect(albums).to.be.deep.equal([ { id: 1,