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
4ab60098e0
commit
1df147401f
@ -23,6 +23,7 @@ describe('Settings middleware', () => {
|
|||||||
it('should save empty enforced users settings', (done: (err?: any) => void) => {
|
it('should save empty enforced users settings', (done: (err?: any) => void) => {
|
||||||
|
|
||||||
ServerEnvironment.sendMailAvailable = false;
|
ServerEnvironment.sendMailAvailable = false;
|
||||||
|
Config.Environment.sendMailAvailable = false;
|
||||||
const req: any = {
|
const req: any = {
|
||||||
session: {},
|
session: {},
|
||||||
sessionOptions: {},
|
sessionOptions: {},
|
||||||
@ -51,6 +52,7 @@ describe('Settings middleware', () => {
|
|||||||
it('should save enforced users settings', (done: (err?: any) => void) => {
|
it('should save enforced users settings', (done: (err?: any) => void) => {
|
||||||
|
|
||||||
ServerEnvironment.sendMailAvailable = false;
|
ServerEnvironment.sendMailAvailable = false;
|
||||||
|
Config.Environment.sendMailAvailable = false;
|
||||||
const req: any = {
|
const req: any = {
|
||||||
session: {},
|
session: {},
|
||||||
sessionOptions: {},
|
sessionOptions: {},
|
||||||
|
@ -711,7 +711,6 @@ describe('IndexingManager', (sqlHelper: DBTestHelper) => {
|
|||||||
const albums = await am.getAlbums();
|
const albums = await am.getAlbums();
|
||||||
expect(albums[0].preview).to.be.an('object');
|
expect(albums[0].preview).to.be.an('object');
|
||||||
delete albums[0].preview;
|
delete albums[0].preview;
|
||||||
console.log(albums);
|
|
||||||
expect(albums).to.be.deep.equal([
|
expect(albums).to.be.deep.equal([
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user