Skip to content

Commit 03e18f8

Browse files
committed
Fix typos
1 parent d331556 commit 03e18f8

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@
156156
"contributions": [
157157
"platform"
158158
]
159+
},
160+
{
161+
"login": "102",
162+
"name": "Roman Gusev",
163+
"avatar_url": "https://avatars1.githubusercontent.com/u/5839225?v=4",
164+
"profile": "https://github.com/102",
165+
"contributions": [
166+
"doc"
167+
]
159168
}
160169
],
161170
"commitConvention": "none"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
160160
</tr>
161161
<tr>
162162
<td align="center"><a href="http://frontstuff.io"><img src="https://avatars1.githubusercontent.com/u/5370675?v=4" width="100px;" alt=""/><br /><sub><b>Sarah Dayan</b></sub></a><br /><a href="#platform-sarahdayan" title="Packaging/porting to new platform">📦</a></td>
163+
<td align="center"><a href="https://github.com/102"><img src="https://avatars1.githubusercontent.com/u/5839225?v=4" width="100px;" alt=""/><br /><sub><b>Roman Gusev</b></sub></a><br /><a href="https://github.com/testing-library/react-hooks-testing-library/commits?author=102" title="Documentation">📖</a></td>
163164
</tr>
164165
</table>
165166

docs/api-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ See the [`wait` Options](/reference/api#wait-options) section for more details o
194194

195195
### `wait` Options
196196

197-
The async utilities accepts the following options:
197+
The async utilities accept the following options:
198198

199199
#### `timeout`
200200

docs/usage/advanced-hooks.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ you, your team, and your project.
9595
## Async
9696

9797
Sometimes, a hook can trigger asynchronous updates that will not be immediately reflected in the
98-
`result.current` value. Luckily, `renderHook` returns some utilities that allows the test to wait
99-
for the hook to update using `async/await` (or just promise callbacks if you prefer). The most basic
98+
`result.current` value. Luckily, `renderHook` returns some utilities that allow the test to wait for
99+
the hook to update using `async/await` (or just promise callbacks if you prefer). The most basic
100100
async utility is called `waitForNextUpdate`.
101101

102102
Let's further extend `useCounter` to have an `incrementAsync` callback that will update the `count`
@@ -132,16 +132,16 @@ test('should increment counter after delay', async () => {
132132
})
133133
```
134134

135-
Wrapping `incrementAsync` in `act()` is not necessary since the state updates happen
136-
asynchronously during `await waitForNextUpdate()`. The async utilities automatically wrap the
137-
waiting code in the asynchronous `act()` wrapper.
135+
Wrapping `incrementAsync` in `act()` is not necessary since the state updates happen asynchronously
136+
during `await waitForNextUpdate()`. The async utilities automatically wrap the waiting code in the
137+
asynchronous `act()` wrapper.
138138

139-
For more details on the the other async utilities, please refer to the
139+
For more details on the other async utilities, please refer to the
140140
[API Reference](/reference/api#asyncutils).
141141

142142
### Suspense
143143

144-
All the [async utilities](/reference/api#async-utilities) will also wait for hooks that suspends
144+
All the [async utilities](/reference/api#async-utilities) will also wait for hooks that suspend
145145
using [React's `Suspense`](https://reactjs.org/docs/react-api.html#reactsuspense) functionality to
146146
complete rendering.
147147

docs/usage/basic-hooks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ test('should reset counter to updated initial value', () => {
166166
})
167167
```
168168

169-
Another case where this is useful is when you want limit the scope of the variables being closed
169+
Another case where this is useful is when you want to limit the scope of the variables being closed
170170
over to just be inside the hook callback. The following (contrived) example fails because the `id`
171171
value changes for both the setup and cleanup of the `useEffect` call:
172172

0 commit comments

Comments
 (0)