UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

11 lines (8 loc) 263 B
StartTest(function(t) { var p = new Promise(function (resolve, reject) { reject(); }); p.then(function () {}) // need to wait, because "unhandledrejection" event is async and test will be finalized before its fired t.waitFor(100) })