diff --git a/app/javascript/spec/c-and-u-collections-form/__snapshots__/c-and-u-collections-form.spec.js.snap b/app/javascript/spec/c-and-u-collections-form/__snapshots__/c-and-u-collections-form.spec.js.snap new file mode 100644 index 000000000000..a547c6792fd1 --- /dev/null +++ b/app/javascript/spec/c-and-u-collections-form/__snapshots__/c-and-u-collections-form.spec.js.snap @@ -0,0 +1,24 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`DiagnosticsCURepairForm Component Should render a new DiagnosticsCURepair form 1`] = ` + + + Note : Gap Collection is only available for VMware vSphere Infrastructures + + +`; diff --git a/app/javascript/spec/c-and-u-collections-form/c-and-u-collections-form.spec.js b/app/javascript/spec/c-and-u-collections-form/c-and-u-collections-form.spec.js new file mode 100644 index 000000000000..56f17c0fc691 --- /dev/null +++ b/app/javascript/spec/c-and-u-collections-form/c-and-u-collections-form.spec.js @@ -0,0 +1,22 @@ +import React from 'react'; +import toJson from 'enzyme-to-json'; +import fetchMock from 'fetch-mock'; +import { act } from 'react-dom/test-utils'; + +import { mount } from '../helpers/mountForm'; +import DiagnosticsCURepairForm from '../../components/c-and-u-collections-form'; + +describe('DiagnosticsCURepairForm Component', () => { + afterEach(() => { + fetchMock.reset(); + fetchMock.restore(); + }); + it('Should render a new DiagnosticsCURepair form', async() => { + let wrapper; + await act(async() => { + wrapper = mount(); + }); + wrapper.update(); + expect(toJson(wrapper)).toMatchSnapshot(); + }); +});