Skip to content

Commit

Permalink
test(Etc): open promise spec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed Dec 28, 2019
1 parent c2a5a65 commit 81aceae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/open-promise.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ describe('Open Promise Class', () => {

it('should reject properly', done => {
const op = new OpenPromise<number>();
const startedAt = new Date().getTime();

op.promise
.then(value => {
throw new CustomError('bar');
})
.catch((err: CustomError) => {
expect(new Date().getTime() - startedAt).toBeGreaterThan(49);
expect(err.message).toBe('foo');
done();
});
Expand Down

0 comments on commit 81aceae

Please sign in to comment.