Closed Noah-Huppert closed 9 years ago
When defining a test with it()
just put a done
parameter in the callback. Then when the async task is done call done()
it("foos the bazz", function(done){
setTimeout(function(){
done();
}, 1);
});
Some tests require asynchronous actions(Like certain
Promise
tests). Jasmine supposedly supports this withdone()
?Figure out how to use this.