From a7f2d0def4a5f72a0172e5988b406f4916098855 Mon Sep 17 00:00:00 2001 From: Chafic Najjar Date: Sat, 7 Sep 2019 13:46:40 +0300 Subject: [PATCH] Replace `test` with `it` in TutorialAsync.md (#8921) `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. --- docs/TutorialAsync.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TutorialAsync.md b/docs/TutorialAsync.md index 2bcd2e69bf34..8ae673757d61 100644 --- a/docs/TutorialAsync.md +++ b/docs/TutorialAsync.md @@ -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({