chore: fix some typos in comment (#3139)

Signed-off-by: clonemycode <clonecode@aliyun.com>
This commit is contained in:
clonemycode 2025-06-03 09:05:54 +08:00 committed by GitHub
parent c3dceea0e1
commit 9d58820318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ See these resources for test runner configuration instructions:
**We recommend using [React Testing Library (RTL)](https://testing-library.com/docs/react-testing-library/intro) **We recommend using [React Testing Library (RTL)](https://testing-library.com/docs/react-testing-library/intro)
to test out React components that connect to Zustand**. RTL is a simple and complete React DOM to test out React components that connect to Zustand**. RTL is a simple and complete React DOM
testing utility that encourages good testing practices. It uses ReactDOM's `render` function and testing utility that encourages good testing practices. It uses ReactDOM's `render` function and
`act` from `react-dom/tests-utils`. Futhermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro) `act` from `react-dom/tests-utils`. Furthermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro)
is the alternative to RTL to test out React Native components. The [Testing Library](https://testing-library.com/) is the alternative to RTL to test out React Native components. The [Testing Library](https://testing-library.com/)
family of tools also includes adapters for many other popular frameworks. family of tools also includes adapters for many other popular frameworks.

View File

@ -302,7 +302,7 @@ describe('persist middleware with async configuration', () => {
) )
}) })
it('can correclty handle a missing migrate function', async () => { it('can correctly handle a missing migrate function', async () => {
console.error = vi.fn() console.error = vi.fn()
const onRehydrateStorageSpy = vi.fn() const onRehydrateStorageSpy = vi.fn()
const storage = { const storage = {

View File

@ -168,7 +168,7 @@ describe('persist middleware with sync configuration', () => {
expect(onRehydrateStorageSpy).toBeCalledWith({ count: 99 }, undefined) expect(onRehydrateStorageSpy).toBeCalledWith({ count: 99 }, undefined)
}) })
it('can correclty handle a missing migrate function', () => { it('can correctly handle a missing migrate function', () => {
console.error = vi.fn() console.error = vi.fn()
const onRehydrateStorageSpy = vi.fn() const onRehydrateStorageSpy = vi.fn()
const storage = { const storage = {