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,