Skip to content

Commit 601bd83

Browse files
authored
test: update msw (#5214)
1 parent 9307c7c commit 601bd83

File tree

4 files changed

+125
-154
lines changed

4 files changed

+125
-154
lines changed

packages/core/useFetch/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ describe('useFetch', () => {
112112
it('should throw error', async () => {
113113
const options = { immediate: false }
114114
const error1 = await useFetch(`${baseUrl}?status=400`, options).execute(true).catch(err => err)
115-
const error2 = await useFetch(`${baseUrl}?status=600`, options).execute(true).catch(err => err)
115+
const error2 = await useFetch(`${baseUrl}?status=500`, options).execute(true).catch(err => err)
116116

117117
expect(error1.name).toBe('Error')
118118
expect(error1.message).toBe('Bad Request')
119119
expect(error2.name).toBe('Error')
120+
expect(error2.message).toBe('Internal Server Error')
120121
})
121122

122123
it('should abort request and set aborted to true', async () => {

0 commit comments

Comments
 (0)