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