Skip to content
Permalink
Browse files
Merge remote-tracking branch 'upstream/master'
  • Loading branch information
Balazs L Bordas committed Sep 15, 2019
2 parents 424380b + 53cc5e5 commit 2ea9e9c7f532d3d7d1220fe6e345009e31b1c22b
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 2ea9e9c

Please sign in to comment.