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

fixing orientation test

This commit is contained in:
Patrik J. Braun 2021-03-28 13:41:54 +02:00
parent 36ecbcbd3d
commit e184db833e
3 changed files with 2 additions and 6 deletions

View File

@ -1,6 +1,4 @@
{ {
"creationDate": 1566424388000,
"fileSize": 349915,
"orientation": 1, "orientation": 1,
"size": { "size": {
"height": 1200, "height": 1200,

View File

@ -1,6 +1,4 @@
{ {
"creationDate": 1566424388000,
"fileSize": 349915,
"orientation": 1, "orientation": 1,
"size": { "size": {
"height": 1800, "height": 1800,

View File

@ -51,7 +51,7 @@ describe('MetadataLoader', () => {
const expected = require(path.join(__dirname, '/../../../assets/orientation/Landscape.json')); const expected = require(path.join(__dirname, '/../../../assets/orientation/Landscape.json'));
expected.orientation = i; expected.orientation = i;
delete data.fileSize; delete data.fileSize;
delete expected.fileSize; delete data.creationDate;
expect(Utils.clone(data)).to.be.deep.equal(expected); expect(Utils.clone(data)).to.be.deep.equal(expected);
}); });
it('Portrait ' + i, async () => { it('Portrait ' + i, async () => {
@ -59,7 +59,7 @@ describe('MetadataLoader', () => {
const expected = require(path.join(__dirname, '/../../../assets/orientation/Portrait.json')); const expected = require(path.join(__dirname, '/../../../assets/orientation/Portrait.json'));
expected.orientation = i; expected.orientation = i;
delete data.fileSize; delete data.fileSize;
delete expected.fileSize; delete data.creationDate;
expect(Utils.clone(data)).to.be.deep.equal(expected); expect(Utils.clone(data)).to.be.deep.equal(expected);
}); });
} }