Skip to content

Commit 8a87fd6

Browse files
authored
Merge pull request #645 from Kwakcena/fix-typo
Fix: typo in the comment
2 parents ca90ab0 + 594b486 commit 8a87fd6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ In order to write meaningful tests, the `IntersectionObserver` needs to be
254254
mocked. You can use the included `react-intersection-observer/test-utils` to
255255
help with this. It mocks the `IntersectionObserver`, and includes a few methods
256256
to assist with faking the `inView` state. When setting the `isIntersecting`
257-
value you can pass either a `boolean` value or a threshold between 0 and 1.It
258-
wil emulate the real IntersectionObserver, allowing you to validate that your
257+
value you can pass either a `boolean` value or a threshold between 0 and 1. It
258+
will emulate the real IntersectionObserver, allowing you to validate that your
259259
components are behaving as expected.
260260
261261
| Method | Description |

src/test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function setupIntersectionMocking(mockFn: typeof jest.fn) {
8585
}
8686

8787
/**
88-
* Rest the IntersectionObserver mock to its initial state, and clear all the elements being observed.
88+
* Reset the IntersectionObserver mock to its initial state, and clear all the elements being observed.
8989
*/
9090
export function resetIntersectionMocking() {
9191
// @ts-ignore

0 commit comments

Comments
 (0)