Skip to content

Commit 56d7a8b

Browse files
committed
[Tests] use through properly
a bugfix in `call-bind` exposed this misuse
1 parent de34703 commit 56d7a8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/objectMode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var forEach = require('for-each');
66
var through = require('@ljharb/through');
77

88
tap.test('object results', function (assert) {
9-
var printer = through({ objectMode: true });
9+
var printer = through(null, null, { objectMode: true });
1010
var objects = [];
1111

1212
printer.write = function (obj) {

test/objectModeWithComment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var tape = require('../');
55
var through = require('@ljharb/through');
66

77
tap.test('test.comment() in objectMode', function (assert) {
8-
var printer = through({ objectMode: true });
8+
var printer = through(null, null, { objectMode: true });
99
var objects = [];
1010
printer.on('error', function (e) {
1111
assert.fail(e);

0 commit comments

Comments
 (0)