Skip to content

Commit

Permalink
Remove as any cast in altered test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrugsy committed Apr 24, 2021
1 parent 66dd9bb commit dc9fc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/tests/queryFn.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe('queryFn base implementation tests', () => {
{
const thunk = mutationWithNeither.initiate('mutationWithNeither')
const result = await store.dispatch(thunk)
expect((result as any).error).toEqual(
expect('error' in result && result.error).toEqual(
expect.objectContaining({
message: 'endpointDefinition.queryFn is not a function',
})
Expand Down

0 comments on commit dc9fc32

Please sign in to comment.