Skip to content

Commit

Permalink
fix test 22
Browse files Browse the repository at this point in the history
  • Loading branch information
Quanmuito committed Jan 28, 2024
1 parent 81a6c41 commit a83b332
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ test.each(deliveryCases)(
act(async () => {
fireEvent.click(screen.getByText(/calculate delivery price/i));
await new Promise((resolve) => setTimeout(resolve, 1000));
return;
const result = await screen.findByTestId('fee');
expect(result).toHaveTextContent(expected);
});
const result = await screen.findByTestId('fee');
expect(result).toHaveTextContent(expected);
}
);

Expand Down

0 comments on commit a83b332

Please sign in to comment.