nodeunit
nodeunit copied to clipboard
Easy unit testing in node.js and the browser, based on the assert module.
Would be willing to publish to npm. https://docs.npmjs.com/transferring-a-package-from-a-user-account-to-another-user-account
# Steps to reproduce Before https://travis-ci.org/github/caolan/nodeunit/builds/710077144 https://travis-ci.org/github/caolan/nodeunit/jobs/710077156 $ npm install > [email protected] postinstall /home/travis/build/caolan/nodeunit/node_modules/ejs > node ./postinstall.js /home/travis/build/caolan/nodeunit/node_modules/ejs/postinstall.js:9 let envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process. ^^^ SyntaxError: Unexpected strict mode reserved...
CoffeeScript on NPM has moved to coffeescript (no hyphen) https://www.npmjs.com/package/coffee-script Before ```bash $ yarn link nodeunit yarn link v1.19.1 success Using linked package for "nodeunit". ✨ Done in 0.07s. $...
Module teardown to allow closing out connection pools, etc so that nodeunit exit expeditiously after running tests
I hope it's cross-platform
A workaround for #351. I'd still like to see the Makescript install `ejs` and `should`, but now that the readme lists these, it's not urgent.
# Steps to reproduce ``` git clone https://github.com/caolan/nodeunit.git cd nodeunit make test ``` # Expected behaviour All tests pass # Actual behaviour ``` nodejs ./bin/nodeunit test module.js:471 throw err; ^...
Testing equallity of numbers is a tricky business because of possible round of errors in floating point numbers. For example the following test will unexpectedly fail as the result of...
I've got a few tests scattered throughout multiple files. Currently I just run `nodeunit .`, nodeunit then tests them all successfully. Great! But I want to export a function from...