You've already forked pigallery2
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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user