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 GitHub
parent 35d08c32c1
commit 0db1f26e64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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!')
})