integration-linking.js 562 B

123456789101112131415161718192021
  1. const MOCK_DELAY = 1000
  2. export function defaultSetupMocks(fetchMock) {
  3. fetchMock.get(
  4. 'express:/user/tpds/queues',
  5. { tpdsToWeb: 0, webToTpds: 0 },
  6. { delay: MOCK_DELAY }
  7. )
  8. }
  9. export function setDefaultMeta() {
  10. window.metaAttributesCache.set('ol-user', {
  11. features: { github: true, dropbox: true, mendeley: false, zotero: false },
  12. refProviders: {
  13. mendeley: true,
  14. zotero: true,
  15. },
  16. })
  17. window.metaAttributesCache.set('ol-github', { enabled: false })
  18. window.metaAttributesCache.set('ol-dropbox', { registered: true })
  19. }