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:
Asserts value is a falsy value.
Asserts that the promise is fulfilled.
Asserts that the promise is rejected.
assert.match(value, test, message)
Asserts that the value RexExp matches the test.