-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ff8674
commit ec0fd0a
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...ascript/spec/c-and-u-collections-form/__snapshots__/c-and-u-collections-form.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
`; |
22 changes: 22 additions & 0 deletions
22
app/javascript/spec/c-and-u-collections-form/c-and-u-collections-form.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |