DocumentsStore WIP

This commit is contained in:
Tom Moor
2017-06-27 20:59:53 -07:00
parent f8a715dcef
commit 72fd39b494
8 changed files with 125 additions and 9 deletions

View File

@ -2,10 +2,12 @@
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import localStorage from '../../__mocks__/localStorage';
const snap = children => {
const wrapper = shallow(children);
expect(toJson(wrapper)).toMatchSnapshot();
};
global.localStorage = localStorage;
global.snap = snap;