1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-10 11:10:35 +02: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,
"size": {
"height": 1200,

View File

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

View File

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