diff options
Diffstat (limited to 'spec/frontend/helpers/url_util_helper.js')
-rw-r--r-- | spec/frontend/helpers/url_util_helper.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/frontend/helpers/url_util_helper.js b/spec/frontend/helpers/url_util_helper.js new file mode 100644 index 00000000000..d28e9aa7bf9 --- /dev/null +++ b/spec/frontend/helpers/url_util_helper.js @@ -0,0 +1,7 @@ +// eslint-disable-next-line import/prefer-default-export +export const setWindowLocation = value => { + Object.defineProperty(window, 'location', { + writable: true, + value, + }); +}; |