diff --git a/.nycrc b/.nycrc index 6c47fc4974..19699770ea 100644 --- a/.nycrc +++ b/.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" ], diff --git a/src/file/media/media.spec.ts b/src/file/media/media.spec.ts index cf9d4a387a..e400b347bf 100644 --- a/src/file/media/media.spec.ts +++ b/src/file/media/media.spec.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, }); }); });