mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
resolve merge conflicts due to PR #829
This commit is contained in:
parent
0f0a66c05d
commit
fb65910993
@ -3,7 +3,7 @@
|
|||||||
"width": 10,
|
"width": 10,
|
||||||
"height": 5
|
"height": 5
|
||||||
},
|
},
|
||||||
"creationDate": 1709057753000,
|
"creationDate": 1709549328178,
|
||||||
"fileSize": 4489,
|
"fileSize": 4489,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"floor",
|
"floor",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"width": 10,
|
"width": 10,
|
||||||
"height": 5
|
"height": 5
|
||||||
},
|
},
|
||||||
"creationDate": 1709057753000,
|
"creationDate": 1709549328185,
|
||||||
"fileSize": 1430,
|
"fileSize": 1430,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"first",
|
"first",
|
||||||
|
12
test/backend/assets/sidecar/no_metadata_v2.jpg.json
Normal file
12
test/backend/assets/sidecar/no_metadata_v2.jpg.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"size": {
|
||||||
|
"width": 10,
|
||||||
|
"height": 5
|
||||||
|
},
|
||||||
|
"creationDate": 1709549328188,
|
||||||
|
"fileSize": 1430,
|
||||||
|
"keywords": [
|
||||||
|
"first",
|
||||||
|
"second"
|
||||||
|
]
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
"width": 10,
|
"width": 10,
|
||||||
"height": 5
|
"height": 5
|
||||||
},
|
},
|
||||||
"creationDate": 1709057753000,
|
"creationDate": 1709549328189,
|
||||||
"fileSize": 1430,
|
"fileSize": 1430,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"first"
|
"first"
|
||||||
|
@ -131,7 +131,7 @@ describe('MetadataLoader', () => {
|
|||||||
|
|
||||||
it('should load sidecar file without file extension for photo', async () => {
|
it('should load sidecar file without file extension for photo', async () => {
|
||||||
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/sidecar/no_metadata_v2.jpg'));
|
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/sidecar/no_metadata_v2.jpg'));
|
||||||
const expected = require(path.join(__dirname, '/../../../assets/sidecar/no_metadata.jpg.json'));//sidecar "no_metadata_v2.xmp" is identical to "no_metadata.jpg.xmp" so we expect the same result
|
const expected = require(path.join(__dirname, '/../../../assets/sidecar/no_metadata_v2.jpg.json'));
|
||||||
expect(Utils.clone(data)).to.be.deep.equal(expected);
|
expect(Utils.clone(data)).to.be.deep.equal(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user