Skip to content

Commit 3b31f4b

Browse files
committed
test: add size checks
1 parent 57c135e commit 3b31f4b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/unit/cmap/connection.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ describe('new Connection()', function () {
342342

343343
let dataCount = 0;
344344
stream.on('data', () => {
345+
expect(chunk).to.have.lengthOf(8);
345346
dataCount += 1;
346347
});
347348

@@ -361,7 +362,8 @@ describe('new Connection()', function () {
361362
const stream = new SizedMessageTransform({ connection: {} as any });
362363

363364
let dataCount = 0;
364-
stream.on('data', () => {
365+
stream.on('data', chunk => {
366+
expect(chunk).to.have.lengthOf(8);
365367
dataCount += 1;
366368
});
367369

0 commit comments

Comments
 (0)