leave.js 457 B

1234567891011121314
  1. const MOCK_DELAY = 1000
  2. export function defaultSetupMocks(fetchMock) {
  3. fetchMock.post(/\/user\/delete/, 200, {
  4. delay: MOCK_DELAY,
  5. })
  6. }
  7. export function setDefaultMeta() {
  8. window.metaAttributesCache = window.metaAttributesCache || new Map()
  9. window.metaAttributesCache.set('ol-usersEmail', 'user@primary.com')
  10. window.metaAttributesCache.set('ol-ExposedSettings', { isOverleaf: true })
  11. window.metaAttributesCache.set('ol-hasPassword', true)
  12. }