X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ui-react%2Fsrc%2Fcomponents%2Fdialogs%2FConfigurationPolicy%2FConfigurationPolicyModal.test.js;fp=ui-react%2Fsrc%2Fcomponents%2Fdialogs%2FConfigurationPolicy%2FConfigurationPolicyModal.test.js;h=e0aa8c6b0a4c38fc9eb6d3fcb77fa6aea5793e6c;hb=564fdb0c2e601df73813a4e9d080bd1666befce4;hp=934fa492dc406b530e56a4e50671834fa5005bd0;hpb=edec26efea06ee9a9d1e0f2d29fe4b26e62d8dfb;p=clamp.git diff --git a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.test.js index 934fa492..e0aa8c6b 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