From 1a25827d941794cff6e4411c705e3b1ce7d78f7d Mon Sep 17 00:00:00 2001 From: 4nalog <4nalog@protonmail.com> Date: Sat, 4 Mar 2023 02:35:10 +0530 Subject: [PATCH] refactor: remove empty waitFor Signed-off-by: 4nalog <4nalog@protonmail.com> --- .../components/Project/test/ProjectDashboard.test.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/console/src/components/Project/test/ProjectDashboard.test.tsx b/packages/console/src/components/Project/test/ProjectDashboard.test.tsx index f30a61dbf..592b104e7 100644 --- a/packages/console/src/components/Project/test/ProjectDashboard.test.tsx +++ b/packages/console/src/components/Project/test/ProjectDashboard.test.tsx @@ -155,11 +155,13 @@ describe('ProjectDashboard', () => { it('should display domain attributes section when config was provided', async () => { const { getByText } = renderView(); expect(getProjectDomainAttributes).toHaveBeenCalled(); - await waitFor(() => {}); - expect(getProjectAttributes).toHaveBeenCalled(); + await waitFor(() => { + expect(getProjectAttributes).toHaveBeenCalled(); + }); - await waitFor(() => {}); - expect(getByText('Domain Settings')).toBeInTheDocument(); + await waitFor(() => { + expect(getByText('Domain Settings')).toBeInTheDocument(); + }); expect( getByText('cliOutputLocationPrefixFromProjectAttributes'),