mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
test: fix error.test
This commit is contained in:
parent
f537abe067
commit
e8ed1e5809
@ -35,8 +35,7 @@ describe('error', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('Error: resolvePath()', async () => {
|
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"')
|
expect(() => nuxt.resolvePath('@/pages/about.vue')).toThrowError('Cannot resolve "@/pages/about.vue"')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user