mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
chore: update error tests
This commit is contained in:
parent
83547fc4ec
commit
d4e5998f93
@ -155,9 +155,8 @@ describe('basic dev', () => {
|
||||
})
|
||||
|
||||
test('/error should return error stack trace (Youch)', async () => {
|
||||
await expect(nuxt.server.renderAndGetWindow(url('/error'))).rejects.toMatchObject({
|
||||
response: { statusCode: 500 }
|
||||
})
|
||||
await expect(nuxt.server.renderAndGetWindow(url('/error')))
|
||||
.rejects.toThrow('Resource was not loaded. Status: 500')
|
||||
})
|
||||
|
||||
test('/error should return json format error (Youch)', async () => {
|
||||
|
@ -32,9 +32,8 @@ describe('error', () => {
|
||||
})
|
||||
|
||||
test('/ with renderAndGetWindow()', async () => {
|
||||
await expect(nuxt.server.renderAndGetWindow(url('/error'))).rejects.toMatchObject({
|
||||
statusCode: 500
|
||||
})
|
||||
await expect(nuxt.server.renderAndGetWindow(url('/error')))
|
||||
.rejects.toThrow('Resource was not loaded. Status: 500')
|
||||
})
|
||||
|
||||
test('Error: resolvePath()', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user