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