mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +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 () => {
|
||||
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"')
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user