fix tests

This commit is contained in:
Pooya Parsa 2017-09-03 01:05:41 +04:30
parent c6c653e68c
commit cdc925cdbb
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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 => {