Move to console.info in tests
to please Sonar
Issue-ID: CLAMP-806
Signed-off-by: JulienBe <jb379x@att.com>
Change-Id: Ia09874acfa7237f0a920f0327e6e2d76eb61fb2a
diff --git a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
index e11d86f..1a6cc19 100644
--- a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
+++ b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
@@ -73,7 +73,7 @@
it('Test API Rejection', () => {
const myMockFunc = fetch.mockImplementationOnce(() => Promise.reject('error'));
setTimeout( () => myMockFunc().catch(e => {
- console.log(e);
+ console.info(e);
}),
100
);
@@ -158,4 +158,4 @@
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 29127ed..a599cec 100644
--- a/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
+++ b/ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js
@@ -78,7 +78,7 @@
setTimeout(
() =>
myMockFunc().catch(e => {
- console.log(e);
+ console.info(e);
}),
100
);
@@ -192,4 +192,4 @@
expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
handleClose.mockClear();
});
-});
\ No newline at end of file
+});