plando

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i plando

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • bitt