Skip to content

Commit

Permalink
Merge pull request #549 from nuxt-community/fix/logout-test
Browse files Browse the repository at this point in the history
test(logout): fix token properties and expect `logoutToken` to be `false`
  • Loading branch information
JoaoPedroAS51 authored Mar 8, 2020
2 parents c2a8aee + f19a6c9 commit 6ba12a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('auth', () => {

return {
loginAxiosBearer: window.$nuxt.$axios.defaults.headers.common.Authorization,
loginToken: window.$nuxt.$auth.getToken()
loginToken: window.$nuxt.$auth.getToken('local')
}
})

Expand All @@ -88,11 +88,11 @@ describe('auth', () => {

return {
logoutAxiosBearer: window.$nuxt.$axios.defaults.headers.common.Authorization,
logoutToken: window.$nuxt.$auth.getToken()
logoutToken: window.$nuxt.$auth.getToken('local')
}
})

expect(logoutToken).toBeNull()
expect(logoutToken).toBeFalsy()
expect(logoutAxiosBearer).toBeUndefined()

await page.close()
Expand Down

0 comments on commit 6ba12a9

Please sign in to comment.