Skip to content

Commit

Permalink
chore(tests): Fix compatibility with Nuxt 2.11
Browse files Browse the repository at this point in the history
A fix in new Nuxt version makes SPA test fail due to initial route
being correctly detected as being in french locale which makes (by
default enabled) `detectBrowserLanguage` feature redirect it to english
route. Previously redirection didn't happen due to Nuxt bug as initial
route seemed to be an english one in code.
  • Loading branch information
rchl committed Jan 20, 2020
1 parent 9edae96 commit 340f307
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ describe(`${browserString} (SPA with router in hash mode)`, () => {
mode: 'spa',
router: {
mode: 'hash'
},
i18n: {
detectBrowserLanguage: false
}
}

Expand Down

0 comments on commit 340f307

Please sign in to comment.