Skip to content

Commit

Permalink
resolve merge conflicts due to PR bpatrik#829
Browse files Browse the repository at this point in the history
  • Loading branch information
kagahd committed Mar 4, 2024
1 parent 0f0a66c commit fb65910
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/backend/assets/sidecar/metadata.jpg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"width": 10,
"height": 5
},
"creationDate": 1709057753000,
"creationDate": 1709549328178,
"fileSize": 4489,
"keywords": [
"floor",
Expand Down
4 changes: 2 additions & 2 deletions test/backend/assets/sidecar/no_metadata.jpg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"width": 10,
"height": 5
},
"creationDate": 1709057753000,
"creationDate": 1709549328185,
"fileSize": 1430,
"keywords": [
"first",
"second"
]
}
}
12 changes: 12 additions & 0 deletions test/backend/assets/sidecar/no_metadata_v2.jpg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"size": {
"width": 10,
"height": 5
},
"creationDate": 1709549328188,
"fileSize": 1430,
"keywords": [
"first",
"second"
]
}
4 changes: 2 additions & 2 deletions test/backend/assets/sidecar/no_metadata_v3.jpg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"width": 10,
"height": 5
},
"creationDate": 1709057753000,
"creationDate": 1709549328189,
"fileSize": 1430,
"keywords": [
"first"
]
}
}
2 changes: 1 addition & 1 deletion test/backend/unit/model/threading/MetaDataLoader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('MetadataLoader', () => {

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 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);
});

Expand Down

0 comments on commit fb65910

Please sign in to comment.