leave.js 525 B

1234567891011121314151617
  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', {
  11. ...window.metaAttributesCache.get('ol-ExposedSettings'),
  12. isOverleaf: true,
  13. })
  14. window.metaAttributesCache.set('ol-hasPassword', true)
  15. }