duplexer2 icon indicating copy to clipboard operation
duplexer2 copied to clipboard

Fix tests and update dependencies (v0.1.5)

Open CorruptComputer opened this issue 4 years ago • 0 comments

  • Fix testing issue with Node version >= 10 (fixes #29)
  • Update dependencies to fix security issues found by NPM
  • Update TravisCI to use supported versions of Node

Before:

duplexer2> npm i
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm notice created a lockfile as package-lock.json. You should commit this file.
added 26 packages from 295 contributors and audited 28 packages in 1.387s
found 4 vulnerabilities (2 low, 1 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

duplexer2> npm test

> [email protected] test C:\Users\CorruptComputer\Desktop\duplexer2
> mocha -R tap

1..14
ok 1 duplexer2 should interact with the writable stream properly for writing
ok 2 duplexer2 should interact with the readable stream properly for reading
ok 3 duplexer2 should end the writable stream, causing it to finish
ok 4 duplexer2 should finish when the writable stream finishes
ok 5 duplexer2 should end when the readable stream ends
ok 6 duplexer2 should bubble errors from the writable stream when no behaviour is specified
ok 7 duplexer2 should bubble errors from the readable stream when no behaviour is specified
ok 8 duplexer2 should bubble errors from the writable stream when bubbleErrors is true
ok 9 duplexer2 should bubble errors from the readable stream when bubbleErrors is true
ok 10 duplexer2 should not bubble errors from the writable stream when bubbleErrors is false
ok 11 duplexer2 should not bubble errors from the readable stream when bubbleErrors is false
ok 12 duplexer2 should work with streams1
ok 13 duplexer2 should export the DuplexWrapper constructor
not ok 14 duplexer2 should not force flowing-mode
  false == null
  AssertionError [ERR_ASSERTION]: false == null
      at Context.<anonymous> (test\tests.js:195:12)
      at processImmediate (internal/timers.js:456:21)
# tests 14
# pass 13
# fail 1
npm ERR! Test failed.  See above for more details.

After:

duplexer2> npm i
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 112 packages from 60 contributors and audited 214 packages in 3.716s

16 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

duplexer2> npm test

> [email protected] test C:\Users\CorruptComputer\Desktop\duplexer2
> mocha -R tap

1..14
ok 1 duplexer2 should interact with the writable stream properly for writing
ok 2 duplexer2 should interact with the readable stream properly for reading
ok 3 duplexer2 should end the writable stream, causing it to finish
ok 4 duplexer2 should finish when the writable stream finishes
ok 5 duplexer2 should end when the readable stream ends
ok 6 duplexer2 should bubble errors from the writable stream when no behaviour is specified
ok 7 duplexer2 should bubble errors from the readable stream when no behaviour is specified
ok 8 duplexer2 should bubble errors from the writable stream when bubbleErrors is true
ok 9 duplexer2 should bubble errors from the readable stream when bubbleErrors is true
ok 10 duplexer2 should not bubble errors from the writable stream when bubbleErrors is false
ok 11 duplexer2 should not bubble errors from the readable stream when bubbleErrors is false
ok 12 duplexer2 should work with streams1
ok 13 duplexer2 should export the DuplexWrapper constructor
ok 14 duplexer2 should not force flowing-mode
# tests 14
# pass 14
# fail 0

CorruptComputer avatar Apr 24 '20 23:04 CorruptComputer