Skip to content

Commit 7fb63a7

Browse files
committed
loosen test for aborterror message
1 parent 06b8f06 commit 7fb63a7

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
@@ -1003,7 +1003,7 @@ describe('fetchBaseQuery', () => {
10031003

10041004
expect(result?.error).toEqual({
10051005
status: 'TIMEOUT_ERROR',
1006-
error: 'AbortError: The operation was aborted.',
1006+
error: expect.stringMatching(/^AbortError:/),
10071007
})
10081008
})
10091009
})
@@ -1121,7 +1121,7 @@ describe('timeout', () => {
11211121

11221122
expect(result?.error).toEqual({
11231123
status: 'TIMEOUT_ERROR',
1124-
error: 'AbortError: The operation was aborted.',
1124+
error: expect.stringMatching(/^AbortError:/),
11251125
})
11261126
})
11271127
})

0 commit comments

Comments
 (0)