aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js')
-rw-r--r--ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js b/ui-react/src/components/dialogs/ManageDictionaries/ManageDictionaries.test.js
index 4363da92..13a6035a 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);
});