Skip to content

Test revisions

test: implement callback wrapper common.mustCall

In test/parallel/test-stream2-readable-wrap.js:

  • replace process.on('exit', ...) block by wrapping all callbacks with common.mustCall
  • replace assert.equal() with assert.strictEqual()
  • add a duration of 1 second to setTimeout() on line 61
  • replace var with const or let

Merge request reports

Loading