mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-23 04:01:48 +08:00
fix: eslint type issue
This commit is contained in:
parent
8a9750ee93
commit
03146a9d69
@ -86,12 +86,14 @@ describe('Cascader.typescript', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('multiple onChange', () => {
|
it('multiple onChange', () => {
|
||||||
const { container } = render(<Cascader multiple onChange={(values) => values} />);
|
const { container } = render(
|
||||||
|
<Cascader multiple onChange={(values: (string | number | null)[][]) => values} />,
|
||||||
|
);
|
||||||
expect(container).toBeTruthy();
|
expect(container).toBeTruthy();
|
||||||
});
|
});
|
||||||
it('props', () => {
|
it('props', () => {
|
||||||
const list: { props?: CascaderAutoProps }[] = [
|
const list: { props?: CascaderAutoProps }[] = [
|
||||||
{ props: { multiple: true, onChange: (value) => value } },
|
{ props: { multiple: true, onChange: (value: (string | number | null)[][]) => value } },
|
||||||
{ props: { multiple: false, onChange: (value) => value } },
|
{ props: { multiple: false, onChange: (value) => value } },
|
||||||
];
|
];
|
||||||
expect(list).toBeTruthy();
|
expect(list).toBeTruthy();
|
||||||
|
Loading…
Reference in New Issue
Block a user