test-plan

0.1.1 • Public • Published

SYNOPSIS

Count assertions and call function at the end

USAGE

it('should be able to wait for two events', function(done) {
  var plan = new Plan(2, done);
 
  setTimeout(function() {
    plan.ok(true);
  }, 20);
 
  setTimeout(function() {
    plan.ok(true);
  }, 10);
});

LICENSE

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0

Package Sidebar

Install

npm i test-plan

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • iefserge