dougwilson / nodejs-depd

Deprecate all the things
MIT License
325 stars 87 forks source link

Improving test assertions #49

Open Lucas-C opened 2 years ago

Lucas-C commented 2 years ago

Using assert.notStrictEqual(..., -1) instead of assert.ok(... !== -1) and displaying stderr in case of assertion failure.

This commit was initially made as part of https://github.com/dougwilson/nodejs-depd/pull/48, but it could be adopted independently

The pipeline is ✔️: https://github.com/voyages-sncf-technologies/nodejs-depd/actions/runs/2004525534