Skip to content

Commit

Permalink
[#894] use toBeCloseTo to account for precision difference
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Jul 13, 2017
1 parent 1eb4a98 commit 6883a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/spec/polygon-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe("Shape : me.Polygon", function () {
shape.to2d();
expect(~~shape.points[1].y).toEqual(0);
expect(~~shape.points[3].x).toEqual(0);
expect(~~shape.points[3].y).toEqual(32);
expect(~~shape.points[3].y).toBeCloseTo(32);
});
});
});

0 comments on commit 6883a3f

Please sign in to comment.