node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

extended-assert

extended-assert

An extended version of Node.js' assert module.

license npm downloads

build coverage code climate dependencies devDependencies

Getting Started

Installation

npm install extended-assert --save-dev

Integration

var assert = require('extended-assert');

API

assert.throwsError(block, type, message)

assert.throwsError(function () {
    throw new TypeError('message');
}, 'TypeError', 'message');

assert.requireFileMock(dirname, id, exports)

var zoe = assert.requireFileMock(__dirname, '../lib/zoe', {
    // ... 
});

Running Tests

To run the test suite first install the development dependencies:

npm install

then run the tests:

npm test