From 0db1f26e64c87c223629f8ba81e014fd81c767f7 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 19 Nov 2018 16:06:48 +0000 Subject: [PATCH] fix(test): wrong route in error-handler-object test (#4363) --- test/fixtures/spa/pages/error-handler-object.vue | 2 +- test/unit/spa.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/spa/pages/error-handler-object.vue b/test/fixtures/spa/pages/error-handler-object.vue index 28d30fbb18..72ace409a7 100644 --- a/test/fixtures/spa/pages/error-handler-object.vue +++ b/test/fixtures/spa/pages/error-handler-object.vue @@ -2,7 +2,7 @@ export default { fetch() { - throw { error: 'fetch error!' } // eslint-disable-line + throw { message: 'fetch error!' } // eslint-disable-line } } diff --git a/test/unit/spa.test.js b/test/unit/spa.test.js index 935169e80e..41dfa70b41 100644 --- a/test/unit/spa.test.js +++ b/test/unit/spa.test.js @@ -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!') })