Skip to content

Commit

Permalink
Merge pull request #645 from Kwakcena/fix-typo
Browse files Browse the repository at this point in the history
Fix: typo in the comment
  • Loading branch information
thebuilder authored Sep 18, 2023
2 parents ca90ab0 + 594b486 commit 8a87fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ In order to write meaningful tests, the `IntersectionObserver` needs to be
mocked. You can use the included `react-intersection-observer/test-utils` to
help with this. It mocks the `IntersectionObserver`, and includes a few methods
to assist with faking the `inView` state. When setting the `isIntersecting`
value you can pass either a `boolean` value or a threshold between 0 and 1.It
wil emulate the real IntersectionObserver, allowing you to validate that your
value you can pass either a `boolean` value or a threshold between 0 and 1. It
will emulate the real IntersectionObserver, allowing you to validate that your
components are behaving as expected.
| Method | Description |
Expand Down
2 changes: 1 addition & 1 deletion src/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function setupIntersectionMocking(mockFn: typeof jest.fn) {
}

/**
* Rest the IntersectionObserver mock to its initial state, and clear all the elements being observed.
* Reset the IntersectionObserver mock to its initial state, and clear all the elements being observed.
*/
export function resetIntersectionMocking() {
// @ts-ignore
Expand Down

1 comment on commit 8a87fd6

@vercel
Copy link

@vercel vercel bot commented on 8a87fd6 Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.