From f8bff441732b1abe3804480b39d9a8d58ffa9382 Mon Sep 17 00:00:00 2001 From: Chandan Kumar <22887527+cksharma11@users.noreply.github.com> Date: Sun, 1 Sep 2019 18:03:30 +0530 Subject: [PATCH] Update snapshot and package json test command --- package.json | 2 +- .../ColorBox/__tests__/__snapshots__/ColorBox.test.js.snap | 6 ++---- .../ColorBoxContainer/__tests__/ColorBoxContainer.test.js | 5 ++++- .../__tests__/__snapshots__/ColorBoxContainer.test.js.snap | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 5303286..efba0e7 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test", + "test": "react-scripts test components", "eject": "react-scripts eject", "predeploy": "npm run build", "deploy": "gh-pages -d build" diff --git a/src/components/ColorBox/__tests__/__snapshots__/ColorBox.test.js.snap b/src/components/ColorBox/__tests__/__snapshots__/ColorBox.test.js.snap index b6f61c0..fe284fe 100644 --- a/src/components/ColorBox/__tests__/__snapshots__/ColorBox.test.js.snap +++ b/src/components/ColorBox/__tests__/__snapshots__/ColorBox.test.js.snap @@ -1,9 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ColorBox should render properly 1`] = ` -" -
- #bbb -
+" +
" `; diff --git a/src/components/ColorBoxContainer/__tests__/ColorBoxContainer.test.js b/src/components/ColorBoxContainer/__tests__/ColorBoxContainer.test.js index 32c4c5d..1b03cc8 100644 --- a/src/components/ColorBoxContainer/__tests__/ColorBoxContainer.test.js +++ b/src/components/ColorBoxContainer/__tests__/ColorBoxContainer.test.js @@ -7,7 +7,10 @@ Enzyme.configure({ adapter: new Adapter() }); describe("ColorBoxContainer", () => { it("should render properly", () => { - const wrapper = shallow(); + const wrapper = shallow(); expect(wrapper.debug()).toMatchSnapshot(); }); }); diff --git a/src/components/ColorBoxContainer/__tests__/__snapshots__/ColorBoxContainer.test.js.snap b/src/components/ColorBoxContainer/__tests__/__snapshots__/ColorBoxContainer.test.js.snap index 8130b04..c163854 100644 --- a/src/components/ColorBoxContainer/__tests__/__snapshots__/ColorBoxContainer.test.js.snap +++ b/src/components/ColorBoxContainer/__tests__/__snapshots__/ColorBoxContainer.test.js.snap @@ -2,7 +2,7 @@ exports[`ColorBoxContainer should render properly 1`] = ` "
- - + +
" `;