Skip to content

Commit 1af4641

Browse files
committed
update tests
1 parent 041cd66 commit 1af4641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ test('hit one closed path with hole', (assert) => {
2323
const paths = [rect(0, 0, 30, 30), rect(10, 10, 10, 10)];
2424
const actual = fillPath(paths, { x: 5, y: 5 });
2525
const expected = [ [ { x: 1, y: 1 }, { x: 1, y: 29 }, { x: 29, y: 29 }, { x: 29, y: 1 } ], [ { x: 21, y: 10 }, { x: 21, y: 20 }, { x: 20, y: 21 }, { x: 10, y: 21 }, { x: 9, y: 20 }, { x: 9, y: 10 }, { x: 10, y: 10 }, { x: 10, y: 9 }, { x: 20, y: 9 } ] ];
26-
assert.ok(actual.length === 1, 'should generate one path')
27-
assert.deepEqual(actual, expected, 'should generate empty path');
26+
assert.ok(actual.length === 2, 'should generate two paths')
27+
assert.deepEqual(actual, expected, 'should generate path with hole');
2828
assert.end();
2929
});
3030

0 commit comments

Comments
 (0)