You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-11-27 22:38:10 +02:00
Fixing tests
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user