mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
15 lines
457 B
JavaScript
15 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)
|
||
|
}
|