diff options
author | Sébastien Determe <sebastien.determe@intl.att.com> | 2020-04-14 08:11:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-14 08:11:58 +0000 |
commit | d3b04701712251befc0e92d96d8812029f5e313a (patch) | |
tree | 967e979402d701f994b0dd560edcded82cc058af /ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js | |
parent | d2e5008edc93220a1117df5c864d828fbae9cc8d (diff) | |
parent | cc5fe51690dc1f780c6b7cd1168e59dedc3b245f (diff) |
Merge "Update suc alert color"
Diffstat (limited to 'ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js')
-rw-r--r-- | ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js b/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js index 5f1dcd5fc..84dbfd1f6 100644 --- a/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js +++ b/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js @@ -63,7 +63,8 @@ describe('Verify DeployLoopModal', () => { const flushPromises = () => new Promise(setImmediate); const historyMock = { push: jest.fn() }; const updateLoopFunction = jest.fn(); - const showAlert = jest.fn(); + const showSucAlert = jest.fn(); + const showFailAlert = jest.fn(); const handleSave = jest.spyOn(DeployLoopModal.prototype,'handleSave'); LoopService.updateGlobalProperties = jest.fn().mockImplementation(() => { return Promise.resolve({ @@ -88,7 +89,7 @@ describe('Verify DeployLoopModal', () => { }); const component = shallow(<DeployLoopModal history={historyMock} - loopCache={loopCache} updateLoopFunction={updateLoopFunction} showAlert={showAlert} />) + loopCache={loopCache} updateLoopFunction={updateLoopFunction} showSucAlert={showSucAlert} showFailAlert={showFailAlert} />) component.find('[variant="primary"]').prop('onClick')(); await flushPromises(); |