Core assert library extended slightly with few more assertion methods.
 
Go to file
Jonatan Nilsson 681e419516 1.0.1 2016-02-24 10:08:06 +00:00
lib strict: Made strict mode explicit 2016-02-24 10:07:34 +00:00
test strict: Made strict mode explicit 2016-02-24 10:07:34 +00:00
.gitignore Initial commit 2016-02-19 04:06:22 +00:00
.travis.yml travis: Create basic travis file 2016-02-19 05:47:44 +00:00
LICENSE license: Update to WTFPL 2016-02-19 05:35:00 +00:00
README.md readme: Add travis build badge 2016-02-19 05:49:35 +00:00
package.json 1.0.1 2016-02-24 10:08:06 +00:00

README.md

assert-extended Build Status

A complimenting library for require('assert') with a few more assertions being made available.

Installation

npm install assert-extended --save-dev

Usage

Add the following anywhere in your test:

require('assert-extended');

And you're good to go.

Assert

Including the default ones that come with assert the following are added:

assert.notOk(value, message)

Asserts value is a falsy value.

assert.isFulfilled(promise, message)

Asserts that the promise is fulfilled.

assert.isRejected(promise, message)

Asserts that the promise is rejected.

assert.match(value, test, message)

Asserts that the value RexExp matches the test.