mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix tests
This commit is contained in:
parent
c6c653e68c
commit
cdc925cdbb
@ -119,7 +119,7 @@ test('/error status code', async t => {
|
||||
await rp(url('/error'))
|
||||
} catch (err) {
|
||||
t.true(err.statusCode === 500)
|
||||
t.true(err.response.body.includes('Error mouahahah'))
|
||||
t.true(err.response.body.includes('An error occurred in the application and your page could not be served'))
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -29,7 +29,7 @@ test('/ should display an error', async t => {
|
||||
|
||||
test('/404 should display an error too', async t => {
|
||||
let { error } = await nuxt.renderRoute('/404')
|
||||
t.true(error.message.includes('This page could not be found.'))
|
||||
t.true(error.message.includes('This page could not be found'))
|
||||
})
|
||||
|
||||
test('/ with renderAndGetWindow()', async t => {
|
||||
|
Loading…
Reference in New Issue
Block a user