diff --git a/src/core/client/ui/components/FormField/FormField.spec.tsx b/src/core/client/ui/components/FormField/FormField.spec.tsx new file mode 100644 index 000000000..ec94aa250 --- /dev/null +++ b/src/core/client/ui/components/FormField/FormField.spec.tsx @@ -0,0 +1,26 @@ +import React from "react"; +import TestRenderer from "react-test-renderer"; + +import FormField from "../FormField"; + +import { InputDescription, InputLabel, TextField } from "../../components"; + +it("renders correctly", () => { + const renderer = TestRenderer.create( + Form Components should go here + ); + expect(renderer.toJSON()).toMatchSnapshot(); +}); + +it("works with multiple form components", () => { + const renderer = TestRenderer.create( + + Username + + A unique identifier displayed on your comments. You may use “_” and “.” + + + + ); + expect(renderer.toJSON()).toMatchSnapshot(); +}); diff --git a/src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap b/src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap new file mode 100644 index 000000000..36cb45582 --- /dev/null +++ b/src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap @@ -0,0 +1,30 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` +
+ Form Components should go here +
+`; + +exports[`works with multiple form components 1`] = ` +
+ +

+ A unique identifier displayed on your comments. You may use “_” and “.” +

+ +
+`; diff --git a/src/core/client/ui/components/InputDescription/InputDescription.spec.tsx b/src/core/client/ui/components/InputDescription/InputDescription.spec.tsx new file mode 100644 index 000000000..25987bf3d --- /dev/null +++ b/src/core/client/ui/components/InputDescription/InputDescription.spec.tsx @@ -0,0 +1,11 @@ +import React from "react"; +import TestRenderer from "react-test-renderer"; + +import InputDescription from "../InputDescription"; + +it("renders correctly", () => { + const renderer = TestRenderer.create( + Form Components should go here + ); + expect(renderer.toJSON()).toMatchSnapshot(); +}); diff --git a/src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap b/src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap new file mode 100644 index 000000000..90078c59e --- /dev/null +++ b/src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` +

+ Form Components should go here +

+`; diff --git a/src/core/client/ui/components/Spinner/Spinner.spec.tsx b/src/core/client/ui/components/Spinner/Spinner.spec.tsx new file mode 100644 index 000000000..05521bf86 --- /dev/null +++ b/src/core/client/ui/components/Spinner/Spinner.spec.tsx @@ -0,0 +1,9 @@ +import React from "react"; +import TestRenderer from "react-test-renderer"; + +import Spinner from "../Spinner"; + +it("renders correctly", () => { + const renderer = TestRenderer.create(); + expect(renderer.toJSON()).toMatchSnapshot(); +}); diff --git a/src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap b/src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap new file mode 100644 index 000000000..c5103e9e6 --- /dev/null +++ b/src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap @@ -0,0 +1,25 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` +
+ + + +
+`;