From d0c115da5e4ea2af55bbca71e980c2c53a4f1de0 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Sun, 2 Apr 2017 18:12:05 +0800 Subject: [PATCH] Don't need renderToJson anymore --- tests/shared/demoTest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/shared/demoTest.js b/tests/shared/demoTest.js index 5714aaf76a..bf16e5450c 100644 --- a/tests/shared/demoTest.js +++ b/tests/shared/demoTest.js @@ -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 = {}) { @@ -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(); }); });