Skip to content

Commit 832c74f

Browse files
authored
update phrasing within testing documentation
1 parent df29fbc commit 832c74f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

developer_docs/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ afterEach(() => server.resetHandlers());
485485
afterAll(() => server.close());
486486
```
487487
488-
If the component makes use of the `formatDate` util, some of the functions in that rely on the `client/i18n.js` file also make an AJAX request, which sometimes leads to an `ERRCONNECTED` error on the console, even though your tests pass. You can fix it by adding a mock for that specific i18n file:
488+
If the component makes use of the `formatDate` util, some of the functions in that rely on the `client/i18n.js` file, which also make an AJAX request. This sometimes leads to an `ERRCONNECTED` error on the console, even though your tests pass. You can fix it by adding a mock for that specific i18n file:
489489
```js
490490
jest.mock('_path_to_file_/i18n');
491491
```
@@ -541,4 +541,4 @@ These files still need tests! If you want to contribute by writing tests, please
541541
3. [Testing Double Wiki (Special thanks to this wiki for being such a comprehensive guide to the history of testing and best practices.)](https://github.com/testdouble/contributing-tests/wiki/Tests%27-Influence-on-Design)
542542
543543
## Special Thanks
544-
Thank you to HipsterBrown for helping us out with writing this documentation.
544+
Thank you to HipsterBrown for helping us out with writing this documentation.

0 commit comments

Comments
 (0)