Skip to content

Commit

Permalink
Change value of originalUrl in mock to better differentiate which is …
Browse files Browse the repository at this point in the history
…used.
  • Loading branch information
Elweyn committed Mar 27, 2024
1 parent cc71ac3 commit 0e370c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion presenter/scripts/tests/mock.vikePageContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ config.global.provide = {
...config.global.provide,
[vikePageContext as symbol]: {
urlPathname: '/some-url',
urlOriginal: '/some-url',
urlOriginal: '/original-url',
routeParams: {
code: 'my-code',
},
Expand Down
2 changes: 1 addition & 1 deletion presenter/src/components/language/LanguageSelector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('LanguageSelector', () => {
})

it('to en', () => {
expect(locationHrefSetSpy).toHaveBeenCalledWith('/en/some-url')
expect(locationHrefSetSpy).toHaveBeenCalledWith('/en/original-url')
})
})
})

0 comments on commit 0e370c2

Please sign in to comment.