Skip to content

Commit

Permalink
tests(package): fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed May 30, 2018
1 parent 0d79c6f commit 6ee5563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/Canvas.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('Canvas', () => {
assert.instanceOf(canvas.flush(), Canvas);
assert.instanceOf(canvas.moveTo(0, 0).write('1234'), Canvas);
assert.instanceOf(canvas.flush(), Canvas);
assert.equal(canvas._stream.write.callCount, 8);
assert.equal(canvas._stream.write.callCount, 2);
});

it('Should properly skip the flush when changes the same', () => {
Expand All @@ -90,7 +90,7 @@ describe('Canvas', () => {
assert.instanceOf(canvas.flush(), Canvas);
assert.instanceOf(canvas.moveTo(0, 0).write('test'), Canvas);
assert.instanceOf(canvas.flush(), Canvas);
assert.equal(canvas._stream.write.callCount, 4);
assert.equal(canvas._stream.write.callCount, 2);
});

it('Should properly calculate buffer pointer', () => {
Expand Down

0 comments on commit 6ee5563

Please sign in to comment.