Skip to content

Commit

Permalink
refactor: remove empty waitFor
Browse files Browse the repository at this point in the history
Signed-off-by: 4nalog <[email protected]>
  • Loading branch information
4nalog committed Mar 3, 2023
1 parent f61590b commit 1a25827
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 1a25827

Please sign in to comment.