Skip to content

Commit

Permalink
chore: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
akmal-deriv committed Aug 7, 2024
1 parent 1061684 commit 99a6b38
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ describe('TradeTypeListItem', () => {
const custom_right_icon = <span>Custom Right Icon</span>;
const handle_right_icon_click = jest.fn();

render(<TradeTypeListItem title='Test Title' leftIcon={custom_left_icon} rightIcon={custom_right_icon} onRightIconClick={handle_right_icon_click} />);
render(
<TradeTypeListItem
title='Test Title'
leftIcon={custom_left_icon}
rightIcon={custom_right_icon}
onRightIconClick={handle_right_icon_click}
/>
);

expect(screen.getByText('Custom Left Icon')).toBeInTheDocument();
expect(screen.getByText('Custom Right Icon')).toBeInTheDocument();
Expand Down

0 comments on commit 99a6b38

Please sign in to comment.