Releases: azu/promise-test-helper
Releases · azu/promise-test-helper
0.2.0
fix timeout without then or catch · Issue #2 · azu/promise-test-helper
You can use shouldFulfilled and shouldRejected without then or catch.
it('without then', function() {
return shouldFulfilled(Promise.resolve());// => Passed
});and
it('without catch', function() {
return shouldRejected(Promise.reject(new Error()));// => Passed
});other case
it('without catch', function() {
return shouldRejected(Promise.resolve());// => Failed
});0.1.0
- Improve shouldRejected reason #1
- enhance error message.