Skip to content

Commit a54e44b

Browse files
authored
test: add test case (#1037)
1 parent 0a4e767 commit a54e44b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Virtual.spec.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,20 @@ describe('Table.Virtual', () => {
396396
});
397397
});
398398
});
399+
400+
it('components', async () => {
401+
const { container } = getTable({
402+
components: {
403+
header: {
404+
cell: function MyTh(props: any) {
405+
return <th {...props} data-mark="my-th" />;
406+
},
407+
},
408+
},
409+
});
410+
411+
await waitFakeTimer();
412+
413+
expect(container.querySelector('thead th')).toHaveAttribute('data-mark', 'my-th');
414+
});
399415
});

0 commit comments

Comments
 (0)