From e184db833ea9ac367b671f45035a07db4c79d03f Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 28 Mar 2021 13:41:54 +0200 Subject: [PATCH] fixing orientation test --- test/backend/assets/orientation/Landscape.json | 2 -- test/backend/assets/orientation/Portrait.json | 2 -- test/backend/unit/model/threading/MetaDataLoader.spec.ts | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/backend/assets/orientation/Landscape.json b/test/backend/assets/orientation/Landscape.json index 09a58967..7c97cdee 100644 --- a/test/backend/assets/orientation/Landscape.json +++ b/test/backend/assets/orientation/Landscape.json @@ -1,6 +1,4 @@ { - "creationDate": 1566424388000, - "fileSize": 349915, "orientation": 1, "size": { "height": 1200, diff --git a/test/backend/assets/orientation/Portrait.json b/test/backend/assets/orientation/Portrait.json index 65fc1c9f..7e2dbdfb 100644 --- a/test/backend/assets/orientation/Portrait.json +++ b/test/backend/assets/orientation/Portrait.json @@ -1,6 +1,4 @@ { - "creationDate": 1566424388000, - "fileSize": 349915, "orientation": 1, "size": { "height": 1800, diff --git a/test/backend/unit/model/threading/MetaDataLoader.spec.ts b/test/backend/unit/model/threading/MetaDataLoader.spec.ts index a143074c..8ea1ebc9 100644 --- a/test/backend/unit/model/threading/MetaDataLoader.spec.ts +++ b/test/backend/unit/model/threading/MetaDataLoader.spec.ts @@ -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); }); }