fix(test): wrong route in error-handler-object test (#4363)

This commit is contained in:
Clark Du 2018-11-19 16:06:48 +00:00 committed by Pooya Parsa
parent 92455a750f
commit 33bd40f154
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
export default {
fetch() {
throw { error: 'fetch error!' } // eslint-disable-line
throw { message: 'fetch error!' } // eslint-disable-line
}
}
</script>

View File

@ -46,7 +46,7 @@ describe('spa', () => {
})
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!')
})