Skip to content

Commit ae1309b

Browse files
committed
moved some tests, that seemed to influence indexing tests
1 parent 75d81d4 commit ae1309b

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed
File renamed without changes.
File renamed without changes.

test/backend/unit/model/threading/DiskManagerWorker.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('DiskMangerWorker', () => {
2424
ProjectPath.ImageFolder = path.join(__dirname, '/../../../assets');
2525
const dir = await DiskManager.scanDirectory('/');
2626
// should match the number of media (photo/video) files in the assets folder
27-
expect(dir.media.length).to.be.equals(17);
27+
expect(dir.media.length).to.be.equals(15);
2828
// eslint-disable-next-line @typescript-eslint/no-var-requires
2929
const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json'));
3030
const i = dir.media.findIndex(m => m.name === 'test image öüóőúéáű-.,.jpg');

test/backend/unit/model/threading/MetaDataLoader.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ describe('MetadataLoader', () => {
3636
});
3737

3838
it('should load png with description', async () => {
39-
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/description.png'));
40-
const expected = require(path.join(__dirname, '/../../../assets/description.json'));
39+
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/title_caption/description.png'));
40+
const expected = require(path.join(__dirname, '/../../../assets/title_caption/description.json'));
4141
expect(Utils.clone(data)).to.be.deep.equal(expected);
4242
});
4343

@@ -186,8 +186,8 @@ describe('MetadataLoader', () => {
186186
expect(Utils.clone(data)).to.be.deep.equal(expected);
187187
});
188188
it('should load image with metadata saved by digikam', async () => {
189-
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/digikam.jpg'));
190-
const expected = require(path.join(__dirname, '/../../../assets/digikam.json'));
189+
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/title_caption/digikam.jpg'));
190+
const expected = require(path.join(__dirname, '/../../../assets/title_caption/digikam.json'));
191191
expect(Utils.clone(data)).to.be.deep.equal(expected);
192192
});
193193

0 commit comments

Comments
 (0)