import fetchMock from 'fetch-mock';

import { GQL_URL } from 'mweb/common/fetch/fetchGQL';

export function mockGQL(body: any): void {
  fetchMock.mock(GQL_URL, { body });
}

export function mockGQL404(): void {
  fetchMock.mock(GQL_URL, 404);
}
