diff --git a/test/error.test.js b/test/error.test.js index 8ae6e025a4..4b6ebad14d 100644 --- a/test/error.test.js +++ b/test/error.test.js @@ -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 => { diff --git a/test/utils.test.js b/test/utils.test.js index b466a54031..3e09d1af1f 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -25,6 +25,7 @@ test('getContext', t => { test('setAnsiColors', t => { utils.setAnsiColors(ansiHTML) + t.pass() }) test('waitFor', function * (t) {