chape
This exports a helper method, which can be used to check a jsverify property with with tape.
If tape
is new to you, see http://www.macwright.org/2014/03/11/tape-is-cool.html
for some propaganda.
Usage
npm i --save-dev chape
then
const test = testconst jsc = const check =
Simple example, showing something obvious isn't true
const is_not_zero = { return n !== 0 }
The TAP output:
TAP version 13
# all integers are non-zero
not ok 1 property does not hold! found counter example: 0
---
operator: fail
at: Test.t.check (./chape/index.js:12:6)
...
1..1
# tests 1
# pass 0
# fail 1
More
YMMV, there isn't much going on here, it's just a trivial helper, check the source.