test: update test/unit/nuxt

This commit is contained in:
Pooya Parsa 2018-10-31 12:51:44 +03:30
parent 965c2a6c55
commit 08d298d35c

View File

@ -39,7 +39,7 @@ describe('nuxt', () => {
await nuxt.server.listen(port, 'localhost')
const { html } = await nuxt.server.renderRoute('/')
expect(html.includes('Universal Vue.js Applications')).toBe(true)
expect(html.includes('<h2 class="Landscape__Title">')).toBe(true)
expect(/Landscape__Page__Explanation/.test(html)).toBe(true)
await nuxt.close()