Skip to content

Releases: azu/promise-test-helper

0.2.0

26 Jan 16:05
@azu azu

Choose a tag to compare

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

04 Dec 01:37
@azu azu

Choose a tag to compare