redbadger/pride-london-app

View on GitHub
src/integrations/__mocks__/contentful/dist/contentful.browser.min.js

Summary

Maintainability
A
0 mins
Test Coverage
const mockEventData = {
  entries: [],
  nextSyncToken: "abc"
};

// eslint-disable-next-line import/prefer-default-export
export const createClient = () => ({
  async sync(opts) {
    return opts.content_type === "event" ? mockEventData : {};
  }
});