Skip to content

Commit

Permalink
Update compare test
Browse files Browse the repository at this point in the history
  • Loading branch information
nishanbajracharya committed Dec 28, 2024
1 parent a64bc5c commit 60c7a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/components/Compare.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Compare component', () => {
fireEvent.click(switchToQuickCompare);

for (let i = 0; i < matchCount; i++) {
const index = Math.random() > 0.5 ? 1 : 2;
const index = i % 2 === 0 ? 1 : 2;
const card = screen.getByLabelText<HTMLButtonElement>(`Card ${index}`);
expect(card).toBeInTheDocument();

Expand Down

0 comments on commit 60c7a98

Please sign in to comment.