Skip to content

Commit

Permalink
added clarification comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMilord committed Nov 5, 2024
1 parent 6136f07 commit 73505e6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ describe('c-quantic-standalone-search-box', () => {

describe('when the current page reference changes', () => {
beforeAll(() => {
// This is needed to mock the window.location.href property to test the keepFiltersOnSearch property in the quanticSearchBox.
// https://stackoverflow.com/questions/54021037/how-to-mock-window-location-href-with-jest-vuejs
Object.defineProperty(window, 'location', {
writable: true,
value: {href: nonStandaloneURL},
Expand Down

0 comments on commit 73505e6

Please sign in to comment.