tpill
v1.0.1
Published
Sync testing tool
Downloads
11
Readme
tpill
Synchronous tests for assertions.
install
npm install tpill
usage
// import
var TPill = require('tpill').TPill;
var tpill = new TPill();
// var tpill = new TPill(3000); wait 3 seconds
// add test
tpill.create(1, 1, 'My Test is True', true);
tpill.create(1, '1', 'My Second Test is True ', false);
// run all test
tpill.run(function(){
process.exit()
});
api
tpill.create(current, expected, testName, strict);
tpill.run(callback);