mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Fix tests with Ava new version
This commit is contained in:
parent
fe6b08d0fd
commit
63424dc3ef
@ -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 => {
|
||||
|
@ -25,6 +25,7 @@ test('getContext', t => {
|
||||
|
||||
test('setAnsiColors', t => {
|
||||
utils.setAnsiColors(ansiHTML)
|
||||
t.pass()
|
||||
})
|
||||
|
||||
test('waitFor', function * (t) {
|
||||
|
Loading…
Reference in New Issue
Block a user