From e8ed1e5809bec620b040833282bde5db0426e54c Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 19 Mar 2018 13:48:11 +0800 Subject: [PATCH] test: fix error.test --- test/error.test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/error.test.js b/test/error.test.js index bdf9d5c2d1..d46cb8680f 100644 --- a/test/error.test.js +++ b/test/error.test.js @@ -35,8 +35,7 @@ describe('error', () => { }) test('Error: resolvePath()', async () => { - expect(() => nuxt.resolvePath()).toThrowError(TypeError) - + expect(() => nuxt.resolvePath()).toThrowError('The \'request\' argument must be string') expect(() => nuxt.resolvePath('@/pages/about.vue')).toThrowError('Cannot resolve "@/pages/about.vue"') })