From cd1000201a8c0534a00759f1b87e8071b0805813 Mon Sep 17 00:00:00 2001 From: clukhei Date: Fri, 22 Mar 2024 17:17:27 +0800 Subject: [PATCH] fix(*): failing test cases --- src/Card/SelectableCard.tsx | 2 +- tests/DatePicker/DatePicker.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Card/SelectableCard.tsx b/src/Card/SelectableCard.tsx index 6b53936f..420b1292 100644 --- a/src/Card/SelectableCard.tsx +++ b/src/Card/SelectableCard.tsx @@ -65,7 +65,7 @@ const SelectableCard: React.FC = ({ }) => { const formCheckRef = React.useRef(null); const cardRef = React.useRef(null); - const formCheckProps = props; + const formCheckProps = {...props, type}; const cardProps = { bg, text, border }; const handleSelect = () => { formCheckRef?.current?.click(); diff --git a/tests/DatePicker/DatePicker.test.tsx b/tests/DatePicker/DatePicker.test.tsx index e04dbfb3..4747cf24 100644 --- a/tests/DatePicker/DatePicker.test.tsx +++ b/tests/DatePicker/DatePicker.test.tsx @@ -1839,7 +1839,7 @@ describe('DatePicker', () => { it('invalid feedback with customisable message is shown when entered invalid date', async () => { const { container, getByText } = render( - + ); const input = container.querySelector('input')!;