Skip to content

Commit a00a9c1

Browse files
committed
test: try to fix vue tests
1 parent db36007 commit a00a9c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vue-query/src/__tests__/useQueryClient.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ describe('useQueryClient', () => {
2020

2121
expect(queryClient).toStrictEqual(queryClientMock)
2222
expect(injectSpy).toHaveBeenCalledTimes(1)
23-
expect(injectSpy).toHaveBeenCalledWith(VUE_QUERY_CLIENT, null)
23+
expect(injectSpy).toHaveBeenCalledWith(VUE_QUERY_CLIENT)
2424
})
2525

2626
test('should throw an error when queryClient does not exist in the context', () => {
2727
injectSpy.mockReturnValueOnce(undefined)
2828

2929
expect(useQueryClient).toThrowError()
3030
expect(injectSpy).toHaveBeenCalledTimes(1)
31-
expect(injectSpy).toHaveBeenCalledWith(VUE_QUERY_CLIENT, null)
31+
expect(injectSpy).toHaveBeenCalledWith(VUE_QUERY_CLIENT)
3232
})
3333

3434
test('should throw an error when used outside of setup function', () => {
@@ -46,6 +46,6 @@ describe('useQueryClient', () => {
4646

4747
useQueryClient(queryClientKey)
4848

49-
expect(injectSpy).toHaveBeenCalledWith(expectedKeyParameter, null)
49+
expect(injectSpy).toHaveBeenCalledWith(expectedKeyParameter)
5050
})
5151
})

0 commit comments

Comments
 (0)