Skip to content

Commit

Permalink
Improving settingsTest #683
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Jul 30, 2023
1 parent cb85538 commit 4ab6009
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/backend/unit/middlewares/admin/SettingsMWs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('Settings middleware', () => {
expect(Config.Users.enforcedUsers.length).to.be.equal(0);
done();
} catch (err) {
console.error(err);
done(err);
}
};
Expand All @@ -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: {},
Expand Down Expand Up @@ -76,6 +79,7 @@ describe('Settings middleware', () => {
done();
}).catch(done);
} catch (err) {
console.error(err);
done(err);
}
};
Expand Down

0 comments on commit 4ab6009

Please sign in to comment.