Skip to content

Commit

Permalink
stop using deprecated apis in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenz Weber committed Oct 1, 2021
1 parent b5ed969 commit 43bba18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/toolkit/src/query/tests/buildHooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ describe('hooks tests', () => {
expectType<string>(res.requestId)
expectType<() => void>(res.abort)
expectType<() => Promise<{ name: string }>>(res.unwrap)
expectType<() => void>(res.reset)
expectType<() => void>(res.unsubscribe)

// abort the mutation immediately to force an error
Expand Down Expand Up @@ -1938,7 +1939,7 @@ describe('hooks with createApi defaults set', () => {
increment.matchPending,
increment.matchFulfilled,
increment.matchPending,
api.internalActions.unsubscribeMutationResult.match,
api.internalActions.removeMutationResult.match,
increment.matchFulfilled
)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe('updateQueryData', () => {

act(() => {
storeRef.store.dispatch(
api.util.patchQueryResult('post', '3', returnValue.inversePatches)
api.util.patchQueryData('post', '3', returnValue.inversePatches)
)
})

Expand Down

0 comments on commit 43bba18

Please sign in to comment.