1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-11-27 22:38:10 +02:00

Fixing tests

This commit is contained in:
Patrik J. Braun
2021-06-03 21:19:21 +02:00
parent f2ab96faaf
commit ff08d34a04
5 changed files with 100 additions and 56 deletions

View File

@@ -584,6 +584,7 @@ describe('IndexingManager', (sqlHelper: DBTestHelper) => {
it('.saved_searches.pg2conf', async () => {
Config.Server.Threading.enabled = false;
Config.Client.Album.enabled = true;
Config.Client.Faces.enabled = true;
Config.Server.Media.folder = path.join(__dirname, '/../../../assets');
ProjectPath.ImageFolder = path.join(__dirname, '/../../../assets');
@@ -595,14 +596,14 @@ describe('IndexingManager', (sqlHelper: DBTestHelper) => {
await im.saveToDB(dir);
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].count;
expect(albums).to.be.equalInAnyOrder([
{
id: 1,
name: 'Alvin',
locked: true,
count: 1,
searchQuery: {
type: SearchQueryTypes.person,
text: 'Alvin',