Move to console.info in tests
[clamp.git] / ui-react / src / components / dialogs / Tosca / ViewLoopTemplatesModal.test.js
index ddfb2a7..1a6cc19 100644 (file)
@@ -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
+       });