diff --git a/test/basic.test.js b/test/basic.test.js index 2b7a4093d5..ff9df26c0b 100755 --- a/test/basic.test.js +++ b/test/basic.test.js @@ -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')) } }) diff --git a/test/error.test.js b/test/error.test.js index 17f13eeda0..96bea41a2f 100644 --- a/test/error.test.js +++ b/test/error.test.js @@ -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 => {