mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 09:22:44 +00:00
14a22de754
[SettingsPage] Small Fixes 3 GitOrigin-RevId: 98accb3c53c802e83f2939e5c25d13fcf3b5e054
17 lines
525 B
JavaScript
17 lines
525 B
JavaScript
const MOCK_DELAY = 1000
|
|
|
|
export function defaultSetupMocks(fetchMock) {
|
|
fetchMock.post(/\/user\/delete/, 200, {
|
|
delay: MOCK_DELAY,
|
|
})
|
|
}
|
|
|
|
export function setDefaultMeta() {
|
|
window.metaAttributesCache = window.metaAttributesCache || new Map()
|
|
window.metaAttributesCache.set('ol-usersEmail', 'user@primary.com')
|
|
window.metaAttributesCache.set('ol-ExposedSettings', {
|
|
...window.metaAttributesCache.get('ol-ExposedSettings'),
|
|
isOverleaf: true,
|
|
})
|
|
window.metaAttributesCache.set('ol-hasPassword', true)
|
|
}
|