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

moved mov and avi test material. added gif-test

This commit is contained in:
gras 2024-04-18 21:34:47 +02:00
parent dca5f2a9d6
commit b979b476bd
4 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{
"creationDate": 1713101795426,
"fileSize": 1005674,
"size": {
"height": 400,
"width": 400
}
}

View File

@ -41,6 +41,12 @@ describe('MetadataLoader', () => {
expect(Utils.clone(data)).to.be.deep.equal(expected); expect(Utils.clone(data)).to.be.deep.equal(expected);
}); });
it('should load gif', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/rotatingearthwmetadata.gif'));
const expected = require(path.join(__dirname, '/../../../assets/rotatingearthwmetadata.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
it('should load png', async () => { it('should load png', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/test_png.png')); const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/test_png.png'));
const expected = require(path.join(__dirname, '/../../../assets/test_png.json')); const expected = require(path.join(__dirname, '/../../../assets/test_png.json'));