Move to console.info in tests 70/105070/1
authorJulienBe <jb379x@att.com>
Fri, 3 Apr 2020 11:21:13 +0000 (13:21 +0200)
committerJulienBe <jb379x@att.com>
Fri, 3 Apr 2020 11:21:13 +0000 (13:21 +0200)
to please Sonar

Issue-ID: CLAMP-806
Signed-off-by: JulienBe <jb379x@att.com>
Change-Id: Ia09874acfa7237f0a920f0327e6e2d76eb61fb2a

ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js
ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.test.js
ui-react/src/components/dialogs/Tosca/ViewToscaPolicyModal.test.js

index 3a45153..13a6035 100644 (file)
@@ -74,7 +74,7 @@ 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
                );
index e11d86f..1a6cc19 100644 (file)
@@ -73,7 +73,7 @@ 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
                );
@@ -158,4 +158,4 @@ describe('Verify ViewLoopTemplatesModal', () => {
                        expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
                        handleClose.mockClear();
                });
-       });
\ No newline at end of file
+       });
index 29127ed..a599cec 100644 (file)
@@ -78,7 +78,7 @@ describe('Verify ViewToscaPolicyModal', () => {
                setTimeout(
     () =>
       myMockFunc().catch(e => {
-        console.log(e);
+        console.info(e);
       }),
     100
   );
@@ -192,4 +192,4 @@ describe('Verify ViewToscaPolicyModal', () => {
                expect(historyMock.push.mock.calls[0]).toEqual([ '/']);
                handleClose.mockClear();
        });
-});
\ No newline at end of file
+});