mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
Improving settingsTest #683
This commit is contained in:
parent
4ab60098e0
commit
1df147401f
@ -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: {},
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user