chore: update checkbox test

This commit is contained in:
Matthew Russell
2023-08-22 11:30:34 +01:00
parent 1aa275ccbd
commit ea41e55791
@@ -9,12 +9,12 @@ describe('Checkbox', () => {
it('should render a checked checkbox if specified in state', () => {
render(<TradingCheckbox label="label" checked={true} />);
expect(screen.getByRole('img')).toBeInTheDocument();
expect(screen.getByTestId(/icon-/)).toBeInTheDocument();
});
it('should render an unchecked checkbox if specified in state', () => {
render(<TradingCheckbox label="unchecked" checked={false} />);
expect(screen.queryByRole('img')).not.toBeInTheDocument();
expect(screen.queryByTestId(/icon-/)).not.toBeInTheDocument();
});
it('should render an indeterminate checkbox if specified in state', () => {