mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +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 => {
|
test('/404 should display an error too', async t => {
|
||||||
try {
|
let { error } = await nuxt.renderRoute('/404')
|
||||||
await nuxt.renderRoute('/404')
|
t.true(error.message.includes('This page could not be found.'))
|
||||||
} catch (e) {
|
|
||||||
t.true(e.message.includes('not_defined is not defined'))
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/ with renderAndGetWindow()', async t => {
|
test('/ with renderAndGetWindow()', async t => {
|
||||||
|
@ -25,6 +25,7 @@ test('getContext', t => {
|
|||||||
|
|
||||||
test('setAnsiColors', t => {
|
test('setAnsiColors', t => {
|
||||||
utils.setAnsiColors(ansiHTML)
|
utils.setAnsiColors(ansiHTML)
|
||||||
|
t.pass()
|
||||||
})
|
})
|
||||||
|
|
||||||
test('waitFor', function * (t) {
|
test('waitFor', function * (t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user