From 100cba9a653eb34e2d2e0e0fd0b61be285a58a84 Mon Sep 17 00:00:00 2001 From: David Cui Date: Wed, 23 Mar 2022 14:55:16 -0700 Subject: [PATCH] update main test to use done() instead of both done() and async/await Signed-off-by: David Cui --- .../public/components/main/__tests__/main.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboards-reports/public/components/main/__tests__/main.test.tsx b/dashboards-reports/public/components/main/__tests__/main.test.tsx index 8445d31d..3142326e 100644 --- a/dashboards-reports/public/components/main/__tests__/main.test.tsx +++ b/dashboards-reports/public/components/main/__tests__/main.test.tsx @@ -17,7 +17,7 @@ function setBreadcrumbs(array: []) { describe('
panel', () => { configure({ adapter: new Adapter() }); - test('render component', async (done) => { + test('render component', (done) => { window = Object.create(window); Object.defineProperty(window, 'location', { configurable: true, @@ -27,7 +27,7 @@ describe('
panel', () => { }, }); - const { container } = await render( + const { container } = render(
);