1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-05 23:18:43 +02:00

Adding test to exiftool based face region parsing

This commit is contained in:
Patrik J. Braun
2020-12-27 14:35:30 +01:00
parent f2538410f6
commit d00cf9420e
4 changed files with 93 additions and 37 deletions

View File

@@ -32,6 +32,13 @@ describe('MetadataLoader', () => {
});
it('should load jpg edited with exiftool', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/exiftool.jpg'));
const expected = require(path.join(__dirname, '/../../../assets/exiftool.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load mp4', async () => {
const data = await MetadataLoader.loadVideoMetadata(path.join(__dirname, '/../../../assets/video.mp4'));
const expected = require(path.join(__dirname, '/../../../assets/video.json'));