From 69ba495c865b845039453fcd09f38b40061e4f79 Mon Sep 17 00:00:00 2001 From: Leangseu Kim Date: Fri, 14 Jul 2023 10:49:54 -0400 Subject: [PATCH] chore: remove done from async function --- src/components/FilePreview/BaseRenderers/textHooks.test.js | 3 +-- src/test/app.test.jsx | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/FilePreview/BaseRenderers/textHooks.test.js b/src/components/FilePreview/BaseRenderers/textHooks.test.js index ba57d904..f0a2c874 100644 --- a/src/components/FilePreview/BaseRenderers/textHooks.test.js +++ b/src/components/FilePreview/BaseRenderers/textHooks.test.js @@ -81,13 +81,12 @@ describe('Text file preview hooks', () => { }); }); describe('onError', () => { - it('calls get on the passed url when it changes', async (done) => { + it('calls get on the passed url when it changes', async () => { axios.get.mockReturnValueOnce(Promise.reject( { response: { status: testValue } }, )); await hooks.fetchFile({ ...props, setContent: state.setState.content }); expect(props.onError).toHaveBeenCalledWith(testValue); - done(); }); }); }); diff --git a/src/test/app.test.jsx b/src/test/app.test.jsx index 0e898f5a..9fa973ae 100644 --- a/src/test/app.test.jsx +++ b/src/test/app.test.jsx @@ -480,10 +480,10 @@ describe('ESG app integration tests', () => { await resolveFns.lock.success(); } /* - test('submit pending', async (done) => { + test('submit pending', async () => { done(); }); - test('submit failed', async (done) => { + test('submit failed', async () => { done(); }); */