plando

Count assertions and call function at the end

Usage no npm install needed!

<script type="module">
  import plando from 'https://cdn.skypack.dev/plando';
</script>

README

plando

Count assertions and call function at the end.

USAGE

var pd = require('plando');

it('should be able to wait for two events', function(done) {
  var d = pd(2, done);

  setTimeout(function() {
    d.ok(true);
  }, 20);

  setTimeout(function() {
    d();
  }, 10);
});

LICENSE

MIT