1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing backend test

This commit is contained in:
Patrik J. Braun 2020-12-27 17:54:05 +01:00
parent dffbd1e7d5
commit 3b82b71203

View File

@ -14,8 +14,8 @@ describe('DiskMangerWorker', () => {
// should match the number of media (photo/video) files in the assets folder
expect(dir.media.length).to.be.equals(7);
const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json'));
expect(Utils.clone(dir.media[2].name)).to.be.deep.equal('test image öüóőúéáű-.,.jpg');
expect(Utils.clone(dir.media[2].metadata)).to.be.deep.equal(expected);
expect(Utils.clone(dir.media[3].name)).to.be.deep.equal('test image öüóőúéáű-.,.jpg');
expect(Utils.clone(dir.media[3].metadata)).to.be.deep.equal(expected);
});
});