The core assertion library for AVA
DON'T USE THIS
$ npm install --save ava-assert
const avaAssert = require('ava-assert');
avaAssert.is(1 + 1, 2);
Passing assertion.
Failing assertion.
Assert that value
is truthy.
Assert that value
is falsy.
Assert that value
is true
.
Assert that value
is false
.
Assert that value
is equal to expected
.
Assert that value
is not equal to expected
.
Assert that value
is deep equal to expected
.
Assert that value
is not deep equal to expected
.
Assert that function
throws an error, or promise
rejects with an error.
error
can be a constructor, regex, error message or validation function.
Returns the error thrown by function
or the rejection reason of promise
.
Assert that function
doesn't throw an error
or promise
resolves.
Assert that contents
matches regex
.
Assert that contents
does not match regex
.
Assert that error
is falsy.
MIT © James Talmage