mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
chore: fix some typos in comment (#3139)
Signed-off-by: clonemycode <clonecode@aliyun.com>
This commit is contained in:
parent
c3dceea0e1
commit
9d58820318
@ -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.
|
||||||
|
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user