diff --git a/test/backend/assets/rotating_earth.avi b/test/backend/assets/rotating_earth.avi deleted file mode 100644 index 35eaa95e..00000000 Binary files a/test/backend/assets/rotating_earth.avi and /dev/null differ diff --git a/test/backend/assets/rotating_earth.mov b/test/backend/assets/rotating_earth.mov deleted file mode 100644 index 37e78d98..00000000 Binary files a/test/backend/assets/rotating_earth.mov and /dev/null differ diff --git a/test/backend/assets/rotatingearthwmetadata.json b/test/backend/assets/rotatingearthwmetadata.json new file mode 100644 index 00000000..f2cd4887 --- /dev/null +++ b/test/backend/assets/rotatingearthwmetadata.json @@ -0,0 +1,8 @@ +{ + "creationDate": 1713101795426, + "fileSize": 1005674, + "size": { + "height": 400, + "width": 400 + } +} \ No newline at end of file diff --git a/test/backend/unit/model/threading/MetaDataLoader.spec.ts b/test/backend/unit/model/threading/MetaDataLoader.spec.ts index 4555c9ed..131ae409 100644 --- a/test/backend/unit/model/threading/MetaDataLoader.spec.ts +++ b/test/backend/unit/model/threading/MetaDataLoader.spec.ts @@ -41,6 +41,12 @@ describe('MetadataLoader', () => { 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 () => { const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/test_png.png')); const expected = require(path.join(__dirname, '/../../../assets/test_png.json'));