Skip to content

0.2.0

Latest

Choose a tag to compare

@azu azu released this 26 Jan 16:05
· 9 commits to master since this release

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