Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Dec 29, 2024
1 parent 1d68e81 commit 166482f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react-query/src/utils-procedure.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('mutationOptions', () => {
client.mockResolvedValueOnce('__mocked__')
await expect(options.mutationFn(1)).resolves.toEqual('__mocked__')
expect(client).toHaveBeenCalledTimes(1)
expect(client).toBeCalledWith(1)
expect(client).toBeCalledWith(1, {})
})

it('works with client context', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/use-queries/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ it('createUseQueriesBuilder', async () => {

expect(options.queryFn).toBeInstanceOf(Function)

const result = await (options as any).queryFn({} as any)
const result = await (options as any).queryFn({})

expect(result).toEqual({
id: '123',
Expand Down
2 changes: 1 addition & 1 deletion packages/react/tests/orpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const appRouter = orpcServer.router({
const orpcHandler = new ORPCHandler(appRouter)

const orpcLink = new ORPCLink({
url: 'http://localhost:3000/api',
url: 'http://localhost:3000',
async fetch(input, init) {
await new Promise(resolve => setTimeout(resolve, 100))
const request = new Request(input, init)
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-query/src/utils-procedure.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe('mutationOptions', () => {
client.mockResolvedValueOnce('__mocked__')
await expect(options.mutationFn(1)).resolves.toEqual('__mocked__')
expect(client).toHaveBeenCalledTimes(1)
expect(client).toBeCalledWith(1)
expect(client).toBeCalledWith(1, {})
})

it('works with client context', async () => {
Expand Down

0 comments on commit 166482f

Please sign in to comment.