mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
chore: fix typo customer (#37820)
* chore: prefer using @internal annotation over other markups * fix: typo
This commit is contained in:
parent
f86a5c79ec
commit
c569631f51
@ -40,7 +40,7 @@ export interface AlertProps {
|
||||
className?: string;
|
||||
banner?: boolean;
|
||||
icon?: React.ReactNode;
|
||||
/** Custome closeIcon */
|
||||
/** Custom closeIcon */
|
||||
closeIcon?: React.ReactNode;
|
||||
action?: React.ReactNode;
|
||||
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
||||
|
@ -251,7 +251,7 @@ describe('Cascader', () => {
|
||||
});
|
||||
|
||||
it('can use fieldNames', () => {
|
||||
const customerOptions = [
|
||||
const customOptions = [
|
||||
{
|
||||
code: 'zhejiang',
|
||||
name: 'Zhejiang',
|
||||
@ -290,7 +290,7 @@ describe('Cascader', () => {
|
||||
|
||||
const { container } = render(
|
||||
<Cascader
|
||||
options={customerOptions}
|
||||
options={customOptions}
|
||||
onChange={onChange}
|
||||
fieldNames={{
|
||||
children: 'items',
|
||||
@ -311,8 +311,7 @@ describe('Cascader', () => {
|
||||
});
|
||||
|
||||
it('should show not found content when options.length is 0', () => {
|
||||
const customerOptions: any[] = [];
|
||||
const { container } = render(<Cascader options={customerOptions} />);
|
||||
const { container } = render(<Cascader options={[]} />);
|
||||
toggleOpen(container);
|
||||
expect(getDropdown(container)).toMatchSnapshot();
|
||||
});
|
||||
@ -398,7 +397,7 @@ describe('Cascader', () => {
|
||||
});
|
||||
|
||||
it('placement work correctly', async () => {
|
||||
const customerOptions = [
|
||||
const customOptions = [
|
||||
{
|
||||
value: 'zhejiang',
|
||||
label: 'Zhejiang',
|
||||
@ -410,7 +409,7 @@ describe('Cascader', () => {
|
||||
],
|
||||
},
|
||||
];
|
||||
const { container } = render(<Cascader options={customerOptions} placement="topRight" />);
|
||||
const { container } = render(<Cascader options={customOptions} placement="topRight" />);
|
||||
toggleOpen(container);
|
||||
|
||||
// Inject in tests/__mocks__/rc-trigger.js
|
||||
|
Loading…
Reference in New Issue
Block a user