1
0
Fork 0

🎨 Moved round() to utils

This commit is contained in:
Joost De Cock 2018-08-31 09:44:12 +02:00
parent 85137b2334
commit 1faad2a01b
9 changed files with 34 additions and 23 deletions

View file

@ -1,5 +1,6 @@
let expect = require("chai").expect;
let freesewing = require("./dist/index.js");
let round = freesewing.utils.round;
it("Should offset a line", () => {
let pattern = new freesewing.Pattern();
@ -617,7 +618,3 @@ it("Should split a path on a line", () => {
expect(line.to.x).to.equal(29.81);
expect(line.to.y).to.equal(46.98);
});
function round(value) {
return Math.round(value * 1e2) / 1e2;
}