Skip to content

Commit

Permalink
fix: login test
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Apr 24, 2018
1 parent cc42e10 commit 54fb8c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const headers = {
// Init Nuxt.js and create a server listening on localhost:4000
test.before('Init Nuxt.js', async t => {
nuxt = createNuxt()
await nuxt.listen(3000, 'localhost')
})

test('Route /login', async t => {
Expand All @@ -25,6 +26,6 @@ test('Route /login with locale [en]', async t => {
})

// Close server and ask nuxt to stop listening to file changes
test.after('Closing server and nuxt.js', t => {
nuxt.close()
test.after('Closing server and nuxt.js', async t => {
await nuxt.close()
})

0 comments on commit 54fb8c6

Please sign in to comment.