mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(test): wrong route in error-handler-object test (#4363)
This commit is contained in:
parent
35d08c32c1
commit
0db1f26e64
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
fetch() {
|
fetch() {
|
||||||
throw { error: 'fetch error!' } // eslint-disable-line
|
throw { message: 'fetch error!' } // eslint-disable-line
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -46,7 +46,7 @@ describe('spa', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('/error-handler-object', async () => {
|
test('/error-handler-object', async () => {
|
||||||
const { html } = await renderRoute('/error-handler')
|
const { html } = await renderRoute('/error-handler-object')
|
||||||
expect(html).toMatch('error handler triggered: fetch error!')
|
expect(html).toMatch('error handler triggered: fetch error!')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user