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:
parent
36ecbcbd3d
commit
e184db833e
@ -1,6 +1,4 @@
|
||||
{
|
||||
"creationDate": 1566424388000,
|
||||
"fileSize": 349915,
|
||||
"orientation": 1,
|
||||
"size": {
|
||||
"height": 1200,
|
||||
|
@ -1,6 +1,4 @@
|
||||
{
|
||||
"creationDate": 1566424388000,
|
||||
"fileSize": 349915,
|
||||
"orientation": 1,
|
||||
"size": {
|
||||
"height": 1800,
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user