Skip to content

taoyuan/plando

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Count assertions and call function at the end

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%