Fix tests
This commit is contained in:
6
.nycrc
6
.nycrc
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"check-coverage": true,
|
"check-coverage": true,
|
||||||
"statements": 99.79,
|
"statements": 99.87,
|
||||||
"branches": 98.17,
|
"branches": 98.2,
|
||||||
"functions": 100,
|
"functions": 100,
|
||||||
"lines": 99.78,
|
"lines": 99.86,
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.ts"
|
"src/**/*.ts"
|
||||||
],
|
],
|
||||||
|
@ -21,16 +21,21 @@ describe("Media", () => {
|
|||||||
|
|
||||||
media.addImage("test2.png", {
|
media.addImage("test2.png", {
|
||||||
stream: Buffer.from(""),
|
stream: Buffer.from(""),
|
||||||
fileName: "test2.png",
|
fileName: "test.png",
|
||||||
transformation: {
|
transformation: {
|
||||||
pixels: {
|
pixels: {
|
||||||
x: Math.round(1),
|
x: Math.round(100),
|
||||||
y: Math.round(1),
|
y: Math.round(100),
|
||||||
|
},
|
||||||
|
flip: {
|
||||||
|
vertical: true,
|
||||||
|
horizontal: true,
|
||||||
},
|
},
|
||||||
emus: {
|
emus: {
|
||||||
x: Math.round(1 * 9525),
|
x: Math.round(1 * 9525),
|
||||||
y: Math.round(1 * 9525),
|
y: Math.round(1 * 9525),
|
||||||
},
|
},
|
||||||
|
rotation: 90,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -50,10 +55,10 @@ describe("Media", () => {
|
|||||||
horizontal: true,
|
horizontal: true,
|
||||||
},
|
},
|
||||||
emus: {
|
emus: {
|
||||||
x: 952500,
|
x: 9525,
|
||||||
y: 952500,
|
y: 9525,
|
||||||
},
|
},
|
||||||
rotation: 5400000,
|
rotation: 90,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user