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:
parent
dca5f2a9d6
commit
b979b476bd
Binary file not shown.
Binary file not shown.
8
test/backend/assets/rotatingearthwmetadata.json
Normal file
8
test/backend/assets/rotatingearthwmetadata.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"creationDate": 1713101795426,
|
||||||
|
"fileSize": 1005674,
|
||||||
|
"size": {
|
||||||
|
"height": 400,
|
||||||
|
"width": 400
|
||||||
|
}
|
||||||
|
}
|
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user