Detalhes do pacote

assert-expect

1stdibs4MIT1.0.6

exposes qunit-style assert.expect

readme (leia-me)

assert-expect

exposes qunit-style assert.expect

installation:

npm install --save assert-expect

usage:

const assert = require('assert-expect');
assert.expect(2);
assert(true);
assert(true);
assert(true);
assert.finished(); // throws exception because 2 asserts were expected, but three were made.