An assertion library for JavaScript and Node.js with a friendly BDD syntax (awesome.must.be.true()). It ships with many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good stuff and well tested.
Other
336
stars
35
forks
source link
must.throw returns unexpected `actual` value when testing message #63
Consider this code:
My IDE (PHPStorm 2017.1) can't diff expected and actual values for this, printing:
Actual value seems to be Error object here.
Test case for the bug itself:
This prints: