Skip to content

Commit 948f745

Browse files
author
Mario De Fazio
committed
update test
1 parent 732bfa8 commit 948f745

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/pages/refundRequests/detail/__tests__/InvoiceDetail.test.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ jest.mock('../../../../components/Chip/StatusChipInvoice', () => (props: any) =>
2525
<div data-testid="status-chip">{props.status}</div>
2626
));
2727

28+
jest.mock('../../../../components/Drawer/DetailDrawer', () => ({
29+
__esModule: true,
30+
default: (props: any) => (
31+
<div data-testid="item-test">
32+
{props.buttons?.map((btn: any) => (
33+
<button
34+
key={btn.dataTestId}
35+
data-testid={btn.dataTestId}
36+
disabled={btn.disabled}
37+
onClick={btn.onClick}
38+
>
39+
{btn.title}
40+
</button>
41+
))}
42+
{props.children}
43+
</div>
44+
),
45+
}));
46+
2847
jest.mock(
2948
'../../../../components/modal/ModalComponent',
3049
() => (props: any) =>

0 commit comments

Comments
 (0)