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/PerformActions.test.js | |
parent | d2e5008edc93220a1117df5c864d828fbae9cc8d (diff) | |
parent | cc5fe51690dc1f780c6b7cd1168e59dedc3b245f (diff) |
Merge "Update suc alert color"
Diffstat (limited to 'ui-react/src/components/dialogs/PerformActions.test.js')
-rw-r--r-- | ui-react/src/components/dialogs/PerformActions.test.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui-react/src/components/dialogs/PerformActions.test.js b/ui-react/src/components/dialogs/PerformActions.test.js index 0b0786290..b833a929d 100644 --- a/ui-react/src/components/dialogs/PerformActions.test.js +++ b/ui-react/src/components/dialogs/PerformActions.test.js @@ -36,7 +36,8 @@ describe('Verify PerformActions', () => { 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(); LoopActionService.refreshStatus = jest.fn().mockImplementation(() => { return Promise.resolve({ @@ -46,7 +47,7 @@ describe('Verify PerformActions', () => { }); }); const component = shallow(<PerformActions loopCache={loopCache} - loopAction="submit" history={historyMock} updateLoopFunction={updateLoopFunction} showAlert={showAlert} />) + loopAction="submit" history={historyMock} updateLoopFunction={updateLoopFunction} showSucAlert={showSucAlert} showFailAlert={showFailAlert} />) await flushPromises(); component.update(); @@ -57,7 +58,8 @@ describe('Verify PerformActions', () => { 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(); LoopActionService.performAction = jest.fn().mockImplementation(() => { return Promise.resolve({ @@ -74,7 +76,7 @@ describe('Verify PerformActions', () => { }); }); const component = shallow(<PerformActions loopCache={loopCache} - loopAction="submit" history={historyMock} updateLoopFunction={updateLoopFunction} showAlert={showAlert} />) + loopAction="submit" history={historyMock} updateLoopFunction={updateLoopFunction} showSucAlert={showSucAlert} showFailAlert={showFailAlert} />) await flushPromises(); component.update(); |