aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/components')
-rw-r--r--ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js3
-rw-r--r--ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js5
-rw-r--r--ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js5
3 files changed, 5 insertions, 8 deletions
diff --git a/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js b/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js
index 4363da923..13a6035a3 100644
--- a/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js
+++ b/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js
@@ -74,11 +74,10 @@ describe('Verify ManageDictionaries', () => {
it('Test API Rejection', () => {
const myMockFunc = fetch.mockImplementationOnce(() => Promise.reject('error'));
setTimeout( () => myMockFunc().catch(e => {
- console.log(e);
+ console.info(e);
}),
100
);
- new Promise(resolve => setTimeout(resolve, 200));
const component = shallow(<ManageDictionaries />);
expect(myMockFunc.mock.calls.length).toBe(1);
});
diff --git a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
index ddfb2a70c..1a6cc1959 100644
--- a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
+++ b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
@@ -73,11 +73,10 @@ describe('Verify ViewLoopTemplatesModal', () => {
it('Test API Rejection', () => {
const myMockFunc = fetch.mockImplementationOnce(() => Promise.reject('error'));
setTimeout( () => myMockFunc().catch(e => {
- console.log(e);
+ console.info(e);
}),
100
);
- new Promise(resolve => setTimeout(resolve, 200));
const component = shallow(<ViewLoopTemplatesModal/>);
expect(myMockFunc.mock.calls.length).toBe(1);
});
@@ -159,4 +158,4 @@ describe('Verify ViewLoopTemplatesModal', () => {
expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
handleClose.mockClear();
});
- }); \ No newline at end of file
+ });
diff --git a/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js b/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
index 952e88867..a599cec04 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
+});