import Enzyme, {shallow, render, mount} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import sinon from 'sinon';
import configureStore from 'redux-mock-store';

Enzyme.configure({adapter: new Adapter()});

// TODO: replace it with jest-localstorage-mock
const localStorageMock = {
  getItem: jest.fn(),
  setItem: jest.fn(),
  clear: jest.fn(),
};

const RunsDataWorkerMock = function() {
  this.onmessage = jest.fn();
  this.postMessage = jest.fn();
};

global.sinon = sinon;
global.shallow = shallow;
global.render = render;
global.mount = mount;
global.mockStore = configureStore();
global.localStorage = localStorageMock;
global.RunsDataWorkerMock = RunsDataWorkerMock;

@@ -362,114 +362,8 @@
 %7D;%0A%0A
-const RunsDataWorkerMock = function() %7B%0A  this.onmessage = jest.fn();%0A  this.postMessage = jest.fn();%0A%7D;%0A%0A
 glob
@@ -533,52 +533,4 @@
 ck;%0A
-global.RunsDataWorkerMock = RunsDataWorkerMock;%0A

Remove unused mock method