Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand committed Jan 6, 2023
1 parent c35a05e commit 83701ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pages/pix-site/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ describe('Index Page', () => {

describe('#mounted', () => {
describe('when there is no cookie', () => {
test('redirects to /locale-choice page', () => {
test('do not redirect', () => {
// given
document.cookie = ''

// when
shallowMount(Index, { mocks: { $router } })

// then
expect($router.push).toHaveBeenCalledWith('/locale-choice')
expect($router.push).not.toHaveBeenCalled()
})
})

Expand Down

0 comments on commit 83701ae

Please sign in to comment.