diff --git a/test/basic.generate.test.js b/test/basic.generate.test.js index 1c285d4a21..7799a1750f 100644 --- a/test/basic.generate.test.js +++ b/test/basic.generate.test.js @@ -101,7 +101,7 @@ test('/validate -> should display a 404', async t => { test('/validate?valid=true', async t => { const window = await nuxt.renderAndGetWindow(url('/validate?valid=true')) const html = window.document.body.innerHTML - t.true(html.includes('
{{ userAgent }}+ + + diff --git a/test/with-config.test.js b/test/with-config.test.js index 42c4da447a..d79c91450a 100644 --- a/test/with-config.test.js +++ b/test/with-config.test.js @@ -47,6 +47,12 @@ test('/test/env', async t => { t.true(html.includes('"string": "Nuxt.js"')) }) +test('/test/user-agent', async t => { + const window = await nuxt.renderAndGetWindow(url('/test/user-agent')) + const html = window.document.body.innerHTML + t.true(html.includes('
Node.js')) +}) + test('/test/about-bis (added with extendRoutes)', async t => { const window = await nuxt.renderAndGetWindow(url('/test/about-bis')) const html = window.document.body.innerHTML @@ -56,7 +62,7 @@ test('/test/about-bis (added with extendRoutes)', async t => { test('Check stats.json generated by build.analyze', t => { const stats = require(resolve(__dirname, 'fixtures/with-config/.nuxt/dist/stats.json')) - t.is(stats.assets.length, 10) + t.is(stats.assets.length, 11) }) // Close server and ask nuxt to stop listening to file changes