Skip to content

Commit

Permalink
c and u form conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
anu-jose-ibm committed Sep 4, 2023
1 parent 9ff8674 commit ec0fd0a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`DiagnosticsCURepairForm Component Should render a new DiagnosticsCURepair form 1`] = `
<Provider
store={
Object {
"asyncReducers": Object {
"FormButtons": [Function],
"notificationReducer": [Function],
},
"dispatch": [Function],
"getState": [Function],
"injectReducers": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(observable): [Function],
}
}
>
<DiagnosticsCURepairForm>
Note : Gap Collection is only available for VMware vSphere Infrastructures
</DiagnosticsCURepairForm>
</Provider>
`;
Original file line number Diff line number Diff line change
@@ -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(<DiagnosticsCURepairForm />);
});
wrapper.update();
expect(toJson(wrapper)).toMatchSnapshot();
});
});

0 comments on commit ec0fd0a

Please sign in to comment.