test: fix error.test

This commit is contained in:
Clark Du 2018-03-19 13:48:11 +08:00
parent f537abe067
commit e8ed1e5809
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -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"')
})