mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Improving settingsTest #683
This commit is contained in:
parent
cb8553896f
commit
4ab60098e0
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user