Skip to content

Commit

Permalink
Don't need renderToJson anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Apr 2, 2017
1 parent 1a8e738 commit d0c115d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/shared/demoTest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import glob from 'glob';
import { render } from 'enzyme';
import { renderToJson } from 'enzyme-to-json';
import MockDate from 'mockdate';

export default function demoTest(component, options = {}) {
Expand All @@ -15,7 +14,7 @@ export default function demoTest(component, options = {}) {
MockDate.set(new Date('2016-11-22').getTime() + (new Date().getTimezoneOffset() * 60 * 1000));
const demo = require(`../.${file}`); // eslint-disable-line global-require, import/no-dynamic-require
const wrapper = render(demo);
expect(renderToJson(wrapper)).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
MockDate.reset();
});
});
Expand Down

0 comments on commit d0c115d

Please sign in to comment.