Skip to content

Commit

Permalink
fix(*): failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
clukhei committed Mar 22, 2024
1 parent 45edbf2 commit cd10002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Card/SelectableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const SelectableCard: React.FC<SelectableCardProps> = ({
}) => {
const formCheckRef = React.useRef<HTMLInputElement>(null);
const cardRef = React.useRef<HTMLDivElement>(null);
const formCheckProps = props;
const formCheckProps = {...props, type};
const cardProps = { bg, text, border };
const handleSelect = () => {
formCheckRef?.current?.click();
Expand Down
2 changes: 1 addition & 1 deletion tests/DatePicker/DatePicker.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@ describe('DatePicker', () => {

it('invalid feedback with customisable message is shown when entered invalid date', async () => {
const { container, getByText } = render(
<DatePicker errorMessage="You have entered an invalid date" />
<DatePicker invalidFeedback="You have entered an invalid date" />
);

const input = container.querySelector('input')!;
Expand Down

0 comments on commit cd10002

Please sign in to comment.