Updated jest for frontend

This commit is contained in:
Jori Lallo
2017-05-22 23:51:16 -07:00
parent 2a8cc80a86
commit 4c8df3231d
6 changed files with 648 additions and 466 deletions

View File

@ -0,0 +1,11 @@
/* eslint-disable */
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
const snap = children => {
const wrapper = shallow(children);
expect(toJson(wrapper)).toMatchSnapshot();
};
global.snap = snap;