mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
re-enable unit test that keywords from photo are merged with keywords from sidecar
This commit is contained in:
parent
f356eae957
commit
d8c064857f
Binary file not shown.
Before Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.0 KiB |
@ -3,8 +3,8 @@
|
|||||||
"width": 10,
|
"width": 10,
|
||||||
"height": 5
|
"height": 5
|
||||||
},
|
},
|
||||||
"creationDate": 1709057753000,
|
"creationDate": 1710188754000,
|
||||||
"fileSize": 4489,
|
"fileSize": 5095,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"floor",
|
"floor",
|
||||||
"book",
|
"book",
|
||||||
|
@ -155,7 +155,8 @@ describe('MetadataLoader', () => {
|
|||||||
|
|
||||||
it('should merge keywords from photo with keywords from sidecar', async () => {
|
it('should merge keywords from photo with keywords from sidecar', async () => {
|
||||||
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/sidecar/metadata_v2.jpg'));
|
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/sidecar/metadata_v2.jpg'));
|
||||||
const expected = require(path.join(__dirname, '/../../../assets/sidecar/metadata_v2.jpg.json')); //"metadata_v2.jpg" is identical to "metadata.jpg" and "metadata_v2.xmp" contains 2 different keywords expect(Utils.clone(data)).to.be.deep.equal(expected);
|
const expected = require(path.join(__dirname, '/../../../assets/sidecar/metadata_v2.jpg.json')); //"metadata_v2.jpg" is identical to "metadata.jpg" and "metadata_v2.xmp" contains 2 different keywords
|
||||||
|
expect(Utils.clone(data)).to.be.deep.equal(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user