Skip to content
Permalink
Browse files
fixed link error
  • Loading branch information
aa7401 committed Sep 15, 2019
1 parent f354d16 commit 53cc5e5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -402,7 +402,7 @@ test('qty must be a number', async done => {
})
```

As you can see, [rejects](https://jestjs.io/docs/en/expect#rejectsunwraps the reason for a rejected promise, if the Promise resolves the test automatically fails. This is the only way Jest can check for a thrown Error in your tests.
As you can see, [`rejects`](https://jestjs.io/docs/en/expect#rejects) unwraps the reason for a rejected promise, if the Promise resolves the test automatically fails. This is the only way Jest can check for a thrown Error in your tests.

### 2.4 Test Your Understanding

0 comments on commit 53cc5e5

Please sign in to comment.