assert-expect

exposes qunit-style assert.expect

Usage no npm install needed!

<script type="module">
  import assertExpect from 'https://cdn.skypack.dev/assert-expect';
</script>

README

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.