Skip to content

Commit

Permalink
[Tests] use through properly
Browse files Browse the repository at this point in the history
a bugfix in `call-bind` exposed this misuse
  • Loading branch information
ljharb committed Oct 21, 2023
1 parent de34703 commit 56d7a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/objectMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var forEach = require('for-each');
var through = require('@ljharb/through');

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

printer.write = function (obj) {
Expand Down
2 changes: 1 addition & 1 deletion test/objectModeWithComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var tape = require('../');
var through = require('@ljharb/through');

tap.test('test.comment() in objectMode', function (assert) {
var printer = through({ objectMode: true });
var printer = through(null, null, { objectMode: true });
var objects = [];
printer.on('error', function (e) {
assert.fail(e);
Expand Down

0 comments on commit 56d7a8b

Please sign in to comment.