From bc0eed4ab3b6f65e8ddc48c8bd3d847ce2e96af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20=C5=81ukasiewicz?= Date: Mon, 7 Sep 2020 18:11:04 +0200 Subject: [PATCH] docs: use preformatted styling for a code example (#10486) --- docs/MockFunctions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/MockFunctions.md b/docs/MockFunctions.md index 7551dcdbbc57..e28ba0960c37 100644 --- a/docs/MockFunctions.md +++ b/docs/MockFunctions.md @@ -130,7 +130,7 @@ export default Users; Now, in order to test this method without actually hitting the API (and thus creating slow and fragile tests), we can use the `jest.mock(...)` function to automatically mock the axios module. -Once we mock the module we can provide a `mockResolvedValue` for `.get` that returns the data we want our test to assert against. In effect, we are saying that we want axios.get('/users.json') to return a fake response. +Once we mock the module we can provide a `mockResolvedValue` for `.get` that returns the data we want our test to assert against. In effect, we are saying that we want `axios.get('/users.json')` to return a fake response. ```js // users.test.js