overleaf/services/web/frontend/js/shared/components/location.js
ilkin-overleaf 205cfbe816 Merge pull request #17597 from overleaf/ii-enable-checkout-component-test
[web] Enable Cypress test for creating new subscription

GitOrigin-RevId: c17efbeb6a29d8e757729cddffef46faf054da70
2024-03-28 09:04:15 +00:00

12 lines
332 B
JavaScript

// window location-related functions in a separate module so they can be mocked/stubbed in tests
export const location = {
assign(url) {
// eslint-disable-next-line no-restricted-syntax
window.location.assign(url)
},
reload() {
// eslint-disable-next-line no-restricted-syntax
window.location.reload()
},
}