mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
cf2dfc6bf1
[SettingsPage] Integration Branch GitOrigin-RevId: 5a3c26b2a02d716c4ae3981e3f08b811ae307725
14 lines
457 B
JavaScript
14 lines
457 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', { isOverleaf: true })
|
|
window.metaAttributesCache.set('ol-hasPassword', true)
|
|
}
|