Skip to content

Commit 6ef362f

Browse files
phryneasmarkerikson
authored andcommitted
fixup test
1 parent 3e77381 commit 6ef362f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolkit/src/query/tests/fetchBaseQuery.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,10 +859,10 @@ describe('fetchBaseQuery', () => {
859859
const baseQuery = fetchBaseQuery<{ foo?: string; bar?: number }>({
860860
prepareHeaders(headers, api) {
861861
expectTypeOf(api.extraOptions).toEqualTypeOf<{ foo?: string; bar?: number }>()
862-
prepare.call(undefined, arguments)
862+
prepare.apply(undefined, arguments)
863863
},
864864
})
865-
baseQuery('', commonBaseQueryApi, { foo: 'baz', bar: 5 })
865+
baseQuery('http://example.com', commonBaseQueryApi, { foo: 'baz', bar: 5 })
866866
expect(prepare).toHaveBeenCalledWith(
867867
expect.anything(),
868868
expect.objectContaining({ extraOptions: { foo: 'baz', bar: 5 } })

0 commit comments

Comments
 (0)