mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 11:11:58 -05:00
205cfbe816
[web] Enable Cypress test for creating new subscription GitOrigin-RevId: c17efbeb6a29d8e757729cddffef46faf054da70
12 lines
332 B
JavaScript
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()
|
|
},
|
|
}
|