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
});