1
0
Fork 0

Update path offset test to match new values.

This commit is contained in:
Nick Dower 2022-02-10 15:41:12 +01:00
parent 7a158c1aca
commit 6c16635046

View file

@ -53,8 +53,8 @@ it("Should offset a curve where cp2 = end", () => {
.close();
a.paths.offset = a.paths.curve.offset(10);
pattern.render();
expect(round(a.paths.offset.bottomRight.x)).to.equal(119.26);
expect(round(a.paths.offset.bottomRight.y)).to.equal(43.27);
expect(round(a.paths.offset.bottomRight.x)).to.equal(119.86);
expect(round(a.paths.offset.bottomRight.y)).to.equal(43.49);
});
it("Should throw error when offsetting line that is no line", () => {