1
0
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:
Patrik J. Braun 2023-07-30 15:45:46 +02:00
parent 4ab60098e0
commit 1df147401f
2 changed files with 2 additions and 1 deletions

View File

@ -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: {},

View File

@ -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,