Skip to content

Commit

Permalink
Replace test with it in TutorialAsync.md (#8921)
Browse files Browse the repository at this point in the history
`it` is used everywhere in TutorialAsync.md except for one test where `test` is used. This commit replaces that `test` with an `it` to keep things consistent and because there does not seem to be a good reason to use `test` over `it` here.
  • Loading branch information
chaficnajjar authored and thymikee committed Sep 7, 2019
1 parent 0df9981 commit a7f2d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/TutorialAsync.md
Expand Up @@ -116,7 +116,7 @@ Errors can be handled using the `.catch` method. Make sure to add `expect.assert

```js
// Testing for async errors using Promise.catch.
test('tests error with promises', () => {
it('tests error with promises', () => {
expect.assertions(1);
return user.getUserName(2).catch(e =>
expect(e).toEqual({
Expand Down

0 comments on commit a7f2d0d

Please sign in to comment.