Skip to content

Commit dc9fc32

Browse files
committed
Remove as any cast in altered test
1 parent 66dd9bb commit dc9fc32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query/tests/queryFn.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ describe('queryFn base implementation tests', () => {
247247
{
248248
const thunk = mutationWithNeither.initiate('mutationWithNeither')
249249
const result = await store.dispatch(thunk)
250-
expect((result as any).error).toEqual(
250+
expect('error' in result && result.error).toEqual(
251251
expect.objectContaining({
252252
message: 'endpointDefinition.queryFn is not a function',
253253
})

0 commit comments

Comments
 (0)