extended-assert

An extended version of Node.js' assert module.

extended-assert

An extended version of Node.js' assert module.

npm install extended-assert --save-dev
var assert = require('extended-assert');
assert.throwsError(function () {
    throw new TypeError('message');
}, 'TypeError', 'message');
var zoe = assert.requireFileMock(__dirname, '../lib/zoe', {
    // ... 
});

To run the test suite first install the development dependencies:

npm install

then run the tests:

npm test