Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #22 from diegchav/fix-failing-test
Browse files Browse the repository at this point in the history
Fix for failing test due to update in dependency
  • Loading branch information
TiagoDanin authored Oct 6, 2019
2 parents 7c082b9 + 40ebd12 commit 5b8a283
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nuxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ test.before('Init Nuxt.js', async () => {
nuxt.listen(4000, 'localhost')
})

test.after('Closing server', () => {
nuxt.close()
})

test('Route / and render HTML', async t => {
const html = await get('/')

Expand All @@ -45,7 +49,3 @@ test('Route /post and render HTML', async t => {
t.true(html.includes('<meta data-n-head="ssr" data-hid="og:description" key="og:description" property="og:description" name="og:description" content="Hello World page in blog">'))
t.true(html.includes('<meta data-n-head="ssr" data-hid="og:locale" key="og:locale" property="og:locale" name="og:locale" content="en">'))
})

test.after('Closing server', () => {
nuxt.close()
})

0 comments on commit 5b8a283

Please sign in to comment.