Fix tests

This commit is contained in:
Dolan Miu
2023-03-17 00:54:29 +00:00
parent 0388a564b5
commit 236cce604f
2 changed files with 14 additions and 9 deletions

6
.nycrc
View File

@ -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"
], ],

View File

@ -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,
}); });
}); });
}); });