Skip to content

Commit 54fb8c6

Browse files
committed
fix: login test
1 parent cc42e10 commit 54fb8c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/login.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const headers = {
1010
// Init Nuxt.js and create a server listening on localhost:4000
1111
test.before('Init Nuxt.js', async t => {
1212
nuxt = createNuxt()
13+
await nuxt.listen(3000, 'localhost')
1314
})
1415

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

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

0 commit comments

Comments
 (0)