Core assert library extended slightly with few more assertion methods.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonatan Nilsson 33dc1ddf0c readme: Add travis build badge 7 years ago
lib assert: Rename match parameters slightly 7 years ago
test assert: Added few helper assertions 7 years ago
.gitignore Initial commit 7 years ago
.travis.yml travis: Create basic travis file 7 years ago
LICENSE license: Update to WTFPL 7 years ago readme: Add travis build badge 7 years ago
package.json npm init 7 years ago

assert-extended Build Status

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


npm install assert-extended --save-dev


Add the following anywhere in your test:


And you're good to go.


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.