diff options
Diffstat (limited to 'test/parallel/test-stream-pipe-multiple-pipes.js')
-rw-r--r-- | test/parallel/test-stream-pipe-multiple-pipes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-stream-pipe-multiple-pipes.js b/test/parallel/test-stream-pipe-multiple-pipes.js index fb2e9f4a54..d89dcbd947 100644 --- a/test/parallel/test-stream-pipe-multiple-pipes.js +++ b/test/parallel/test-stream-pipe-multiple-pipes.js @@ -4,7 +4,7 @@ const stream = require('stream'); const assert = require('assert'); const readable = new stream.Readable({ - read: () => {} + read: common.noop }); const writables = []; @@ -18,7 +18,7 @@ for (let i = 0; i < 5; i++) { }); target.output = []; - target.on('pipe', common.mustCall(() => {})); + target.on('pipe', common.mustCall()); readable.pipe(target); @@ -35,7 +35,7 @@ process.nextTick(common.mustCall(() => { for (const target of writables) { assert.deepStrictEqual(target.output, [input]); - target.on('unpipe', common.mustCall(() => {})); + target.on('unpipe', common.mustCall()); readable.unpipe(target); } |