insist
insist copied to clipboard
A drop-in replacement for `assert` with a better default message.
Results
2
insist issues
Sort by
recently updated
recently updated
newest added
Replaced "const" with "var" so it can be used with older js engines. (I'm using a recent js engine, but a nested esprima module is using older syntax rules so...
Testing insist with io.js 2.1.0 in the REPL: ``` # iojs > let assert = require('insist'); undefined > assert.equal(3, 4); TypeError: Cannot read property 'toString' of undefined at getMessage (/mnt/devdrive/NodeProjects/asserttests/node_modules/insist/insist.js:84:21)...