1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixed tests

This commit is contained in:
gras 2024-02-05 23:58:34 +01:00
parent 5315e2b9bd
commit 589b255d45
4 changed files with 2 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View File

@ -3,8 +3,8 @@
"width": 1920, "width": 1920,
"height": 1080 "height": 1080
}, },
"creationDate": 1706655727004, "creationDate": 1706659327000,
"fileSize": 110375, "fileSize": 111432,
"positionData": { "positionData": {
"GPSData": { "GPSData": {
"longitude": 14.162922, "longitude": 14.162922,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -68,12 +68,6 @@ describe('MetadataLoader', () => {
const expected = require(path.join(__dirname, '/../../../assets/Chars_exiftool.json')); const expected = require(path.join(__dirname, '/../../../assets/Chars_exiftool.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected); expect(Utils.clone(data)).to.be.deep.equal(expected);
}); });
it('should load png with keyword and dates', async () => {
const data = await MetadataLoader.loadPhotoMetadata(path.join(__dirname, '/../../../assets/png_with_keyword_and_dates.png'));
const expected = require(path.join(__dirname, '/../../../assets/png_with_keyword_and_dates.json'));
expect(Utils.clone(data)).to.be.deep.equal(expected);
});
describe('should load jpg with proper height and orientation', () => { describe('should load jpg with proper height and orientation', () => {
it('jpg 1', async () => { it('jpg 1', async () => {