aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js
diff options
context:
space:
mode:
authorSébastien Determe <sebastien.determe@intl.att.com>2019-10-04 14:17:32 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-04 14:17:32 +0000
commitd58ae1b2ca0819924d4c6df78a0613441398befb (patch)
tree629fa3690fccd01049bbac5bce6af8c51e24c9a0 /ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js
parentfd200512af757af56b106e158b58f4877a6bd08f (diff)
parent564fdb0c2e601df73813a4e9d080bd1666befce4 (diff)
Merge "Add react ui test"
Diffstat (limited to 'ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js')
-rw-r--r--ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js
index 934fa492d..e0aa8c6b0 100644
--- a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js
+++ b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js
@@ -29,13 +29,13 @@ import LoopCache from '../../../api/LoopCache';
describe('Verify DeployLoop', () => {
beforeEach(() => {
fetch.resetMocks();
- fetch.mockImplementation(() => {
- return Promise.resolve({
- ok: true,
- status: 200,
- text: () => "OK"
- });
- });
+ fetch.mockImplementation(() => {
+ return Promise.resolve({
+ ok: true,
+ status: 200,
+ text: () => "OK"
+ });
+ });
})
const loopCache = new LoopCache({
"name": "LOOP_Jbv1z_v1_0_ResourceInstanceName1_tca",
@@ -59,7 +59,7 @@ describe('Verify DeployLoop', () => {
expect(handleClose).toHaveBeenCalledTimes(1);
expect(component.state('show')).toEqual(false);
- expect(historyMock.push.mock.calls[0]).toEqual([ '/', ]);
+ expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
});
it('Test handleSave', async () => {
@@ -74,6 +74,6 @@ describe('Verify DeployLoop', () => {
expect(handleSave).toHaveBeenCalledTimes(1);
expect(component.state('show')).toEqual(false);
expect(component.state('componentName')).toEqual("TCA_h2NMX_v1_0_ResourceInstanceName1_tca");
- expect(historyMock.push.mock.calls[0]).toEqual([ '/', ]);
+ expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
});
}); \ No newline at end of file