Skip to content

Commit

Permalink
fixup test
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored and markerikson committed Oct 14, 2024
1 parent 3e77381 commit 6ef362f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolkit/src/query/tests/fetchBaseQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -859,10 +859,10 @@ describe('fetchBaseQuery', () => {
const baseQuery = fetchBaseQuery<{ foo?: string; bar?: number }>({
prepareHeaders(headers, api) {
expectTypeOf(api.extraOptions).toEqualTypeOf<{ foo?: string; bar?: number }>()
prepare.call(undefined, arguments)
prepare.apply(undefined, arguments)
},
})
baseQuery('', commonBaseQueryApi, { foo: 'baz', bar: 5 })
baseQuery('http://example.com', commonBaseQueryApi, { foo: 'baz', bar: 5 })
expect(prepare).toHaveBeenCalledWith(
expect.anything(),
expect.objectContaining({ extraOptions: { foo: 'baz', bar: 5 } })
Expand Down

0 comments on commit 6ef362f

Please sign in to comment.