1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

remember to add to the diskmanager expected result, when adding a test :-(

This commit is contained in:
grasdk 2024-04-03 21:14:46 +00:00
parent 6019932d71
commit 39e98d8314

View File

@ -24,7 +24,7 @@ describe('DiskMangerWorker', () => {
ProjectPath.ImageFolder = path.join(__dirname, '/../../../assets'); ProjectPath.ImageFolder = path.join(__dirname, '/../../../assets');
const dir = await DiskManager.scanDirectory('/'); const dir = await DiskManager.scanDirectory('/');
// should match the number of media (photo/video) files in the assets folder // should match the number of media (photo/video) files in the assets folder
expect(dir.media.length).to.be.equals(15); expect(dir.media.length).to.be.equals(16);
// eslint-disable-next-line @typescript-eslint/no-var-requires // eslint-disable-next-line @typescript-eslint/no-var-requires
const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json')); const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json'));
const i = dir.media.findIndex(m => m.name === 'test image öüóőúéáű-.,.jpg'); const i = dir.media.findIndex(m => m.name === 'test image öüóőúéáű-.,.jpg');