From 73505e619f7925de1bac8c1bafe59c101c508501 Mon Sep 17 00:00:00 2001 From: simonmilord Date: Tue, 5 Nov 2024 09:23:48 -0500 Subject: [PATCH] added clarification comment --- .../__tests__/quanticStandaloneSearchBox.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/quantic/force-app/main/default/lwc/quanticStandaloneSearchBox/__tests__/quanticStandaloneSearchBox.test.js b/packages/quantic/force-app/main/default/lwc/quanticStandaloneSearchBox/__tests__/quanticStandaloneSearchBox.test.js index f6ea637537..a41ba41be2 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticStandaloneSearchBox/__tests__/quanticStandaloneSearchBox.test.js +++ b/packages/quantic/force-app/main/default/lwc/quanticStandaloneSearchBox/__tests__/quanticStandaloneSearchBox.test.js @@ -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},