Skip to content

Commit

Permalink
loosen test for aborterror message
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Feb 2, 2024
1 parent 06b8f06 commit 7fb63a7
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 @@ -1003,7 +1003,7 @@ describe('fetchBaseQuery', () => {

expect(result?.error).toEqual({
status: 'TIMEOUT_ERROR',
error: 'AbortError: The operation was aborted.',
error: expect.stringMatching(/^AbortError:/),
})
})
})
Expand Down Expand Up @@ -1121,7 +1121,7 @@ describe('timeout', () => {

expect(result?.error).toEqual({
status: 'TIMEOUT_ERROR',
error: 'AbortError: The operation was aborted.',
error: expect.stringMatching(/^AbortError:/),
})
})
})

0 comments on commit 7fb63a7

Please sign in to comment.