aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js')
-rw-r--r--ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js b/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
index 952e8886..a599cec0 100644
--- a/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
+++ b/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
@@ -78,11 +78,10 @@ describe('Verify ViewToscaPolicyModal', () => {
setTimeout(
() =>
myMockFunc().catch(e => {
- console.log(e);
+ console.info(e);
}),
100
);
- new Promise(resolve => setTimeout(resolve, 200));
const component = shallow(<ViewToscaPolicyModal/>);
expect(myMockFunc.mock.calls.length).toBe(1);
});
@@ -193,4 +192,4 @@ describe('Verify ViewToscaPolicyModal', () => {
expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
handleClose.mockClear();
});
-}); \ No newline at end of file
+});