From 144469cda9278a1b977dc2ff10da4e110833dce9 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 9 Jun 2020 23:00:26 -0500 Subject: [PATCH] Test: Form input snapshots --- .../__snapshots__/forms-test.js.snap | 101 ++++++++++++++++++ .../features/forms/__tests__/forms-test.js | 85 +++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 app/soapbox/features/forms/__tests__/__snapshots__/forms-test.js.snap create mode 100644 app/soapbox/features/forms/__tests__/forms-test.js diff --git a/app/soapbox/features/forms/__tests__/__snapshots__/forms-test.js.snap b/app/soapbox/features/forms/__tests__/__snapshots__/forms-test.js.snap new file mode 100644 index 000000000..9f0440287 --- /dev/null +++ b/app/soapbox/features/forms/__tests__/__snapshots__/forms-test.js.snap @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` renders correctly 1`] = ` +
+ +
+`; + +exports[` renders correctly 1`] = ` +
+`; + +exports[` renders correctly 1`] = ` +
+ +
+`; + +exports[` renders correctly 1`] = ` +
+`; + +exports[` renders correctly 1`] = ` +
+
+
+
+`; + +exports[` renders correctly 1`] = ` + +`; + +exports[` renders correctly 1`] = ` +
+`; + +exports[` renders correctly 1`] = ` +
+ +
+`; + +exports[` renders correctly 1`] = ` +
+ +
+`; diff --git a/app/soapbox/features/forms/__tests__/forms-test.js b/app/soapbox/features/forms/__tests__/forms-test.js new file mode 100644 index 000000000..ffb30b273 --- /dev/null +++ b/app/soapbox/features/forms/__tests__/forms-test.js @@ -0,0 +1,85 @@ +import React from 'react'; +import renderer from 'react-test-renderer'; +import { + InputContainer, + SimpleInput, + SimpleForm, + FieldsGroup, + Checkbox, + RadioGroup, + SelectDropdown, + TextInput, + FileChooser, +} from '..'; + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +}); + +describe('', () => { + it('renders correctly', () => { + expect(renderer.create( + + ).toJSON()).toMatchSnapshot(); + }); +});