Skip to content

Commit

Permalink
Update UserCard.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Bangarraju-Microsoft authored Oct 14, 2024
1 parent fa7245d commit 848a990
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('UserCard Component', () => {
const card = screen.getByText(mockProps.ClientName);

fireEvent.keyDown(card, { key: ' ', code: 'Space' }); // Testing Space key for card click
expect(mockProps.onCardClick).toHaveBeenCalledTimes(1); // Check if it's been called twice now
expect(mockProps.onCardClick).toHaveBeenCalledTimes(3); // Check if it's been called twice now
});


Expand Down

0 comments on commit 848a990

Please sign in to comment.