mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
test: fix for node 24 (#3278)
This commit is contained in:
parent
6422fa8898
commit
ab5a98b187
@ -218,7 +218,7 @@ describe('When state changes with automatic setter inferring...', () => {
|
||||
api.getState().setCount(10)
|
||||
const [connection] = getNamedConnectionApis(options.name)
|
||||
expect(connection.send).toHaveBeenLastCalledWith(
|
||||
{ type: 'Object.setCount' },
|
||||
{ type: expect.stringMatching(/^(Object\.setCount|anonymous)$/) },
|
||||
{ count: 10, setCount: expect.any(Function) },
|
||||
)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user