From c21b8a044e647a880185482cbe2fb6b2be391b95 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 3 Aug 2018 08:24:42 -0300 Subject: [PATCH] updated tests --- .../client/ui/components/InputLabel/InputLabel.spec.tsx | 4 +++- .../InputLabel/__snapshots__/InputLabel.spec.tsx.snap | 9 +++++++++ .../__snapshots__/ValidationMessage.spec.tsx.snap | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap diff --git a/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx b/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx index 90c3ef97f..7e1b87fac 100644 --- a/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx +++ b/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx @@ -9,6 +9,8 @@ it("renders correctly", () => { const props: PropTypesOf = { className: "custom", }; - const renderer = TestRenderer.create(Hello); + const renderer = TestRenderer.create( + Hello + ); expect(renderer.toJSON()).toMatchSnapshot(); }); diff --git a/src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap b/src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap new file mode 100644 index 000000000..25f8d3cdf --- /dev/null +++ b/src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` +

+ Hello +

+`; diff --git a/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap b/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap index 23e7d294a..b35ffdb4d 100644 --- a/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap +++ b/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap @@ -5,7 +5,7 @@ exports[`renders correctly 1`] = ` className="ValidationMessage-root ValidationMessage-colorError custom" > warning