just-assert
World's smallest JavaScript assertion library
Usage
assert(2 === 3, '2 is not equal to 3!');
assert.not(2 === 2, '2 is equal to 2!');
Also shows console trace to show whence the error came from.
World's smallest JavaScript assertion library
assert(2 === 3, '2 is not equal to 3!');
assert.not(2 === 2, '2 is equal to 2!');
Also shows console trace to show whence the error came from.
npm i just-assert
0
1.0.1
MIT