diff --git a/test/tests/HitResult.js b/test/tests/HitResult.js index 330e98f9..085eb756 100644 --- a/test/tests/HitResult.js +++ b/test/tests/HitResult.js @@ -143,8 +143,7 @@ test('hitting the center of a path', function() { test('hitting the center of a path with tolerance', function() { var path = new Path([0, 0], [100, 100], [200, 0]); path.closed = true; - - var hitResult = paper.project.hitTest(path.position + [1, 1], { + var hitResult = paper.project.hitTest(path.position.add(1, 1), { center: true });