Fix tests with Ava new version

This commit is contained in:
Sebastien Chopin 2017-04-13 11:32:29 +02:00
parent fe6b08d0fd
commit 63424dc3ef
2 changed files with 3 additions and 5 deletions

View File

@ -28,11 +28,8 @@ test('/ should display an error', async t => {
})
test('/404 should display an error too', async t => {
try {
await nuxt.renderRoute('/404')
} catch (e) {
t.true(e.message.includes('not_defined is not defined'))
}
let { error } = await nuxt.renderRoute('/404')
t.true(error.message.includes('This page could not be found.'))
})
test('/ with renderAndGetWindow()', async t => {

View File

@ -25,6 +25,7 @@ test('getContext', t => {
test('setAnsiColors', t => {
utils.setAnsiColors(ansiHTML)
t.pass()
})
test('waitFor', function * (t) {