Skip to content

Commit 4df7263

Browse files
committed
correct text
1 parent 7121450 commit 4df7263

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

versioned_docs/version-7.x/testing.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ If you're not using Jest, then you'll need to mock these modules according to th
7979

8080
We recommend using [React Native Testing Library](https://callstack.github.io/react-native-testing-library/) along with [`jest-native`](https://github.com/testing-library/jest-native) to write your tests.
8181

82-
We are going to write example tests illustrating the difference between `navigate` and `push` functions, drawer's screens `preload` and times functions in tests.
82+
We are going to write example tests illustrating the difference between `navigate` and `push` functions, how drawer's screens `preload`
83+
works and what you have to do to use times functions in tests.
8384

8485
To show the difference between `navigate` and `push` functions, we will use `RootNavigator` defined below:
8586

@@ -439,6 +440,7 @@ test('navigates to settings without previous preload', () => {
439440
</Tabs>
440441

441442
With preloading test example:
443+
442444
<Tabs groupId="example" queryString="example">
443445
<TabItem value="static" label="Static" default>
444446

@@ -584,7 +586,7 @@ test('navigates to settings with previous preload', () => {
584586
</TabItem>
585587
</Tabs>
586588

587-
For writing tests that include times functions you will need to use [Fake Timers](https://jestjs.io/docs/timer-mocks). They will replace times function implementation to use time from the fake clock.
589+
For writing tests that include times functions we will have to use [Fake Timers](https://jestjs.io/docs/timer-mocks). They will replace times function implementation to use time from the fake clock.
588590

589591
Let's add another button to the Profile screen, which uses `setTimeout`:
590592

0 commit comments

Comments
 (0)