Skip to content

Commit 6ee5563

Browse files
committed
tests(package): fix failing tests
1 parent 0d79c6f commit 6ee5563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/Canvas.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('Canvas', () => {
8080
assert.instanceOf(canvas.flush(), Canvas);
8181
assert.instanceOf(canvas.moveTo(0, 0).write('1234'), Canvas);
8282
assert.instanceOf(canvas.flush(), Canvas);
83-
assert.equal(canvas._stream.write.callCount, 8);
83+
assert.equal(canvas._stream.write.callCount, 2);
8484
});
8585

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

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

0 commit comments

Comments
 (0)