chore: fix typo customer (#37820)

* chore: prefer using @internal annotation over other markups

* fix: typo
This commit is contained in:
Zheeeng 2022-09-30 16:59:29 +08:00 committed by GitHub
parent f86a5c79ec
commit c569631f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -40,7 +40,7 @@ export interface AlertProps {
className?: string; className?: string;
banner?: boolean; banner?: boolean;
icon?: React.ReactNode; icon?: React.ReactNode;
/** Custome closeIcon */ /** Custom closeIcon */
closeIcon?: React.ReactNode; closeIcon?: React.ReactNode;
action?: React.ReactNode; action?: React.ReactNode;
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>; onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;

View File

@ -251,7 +251,7 @@ describe('Cascader', () => {
}); });
it('can use fieldNames', () => { it('can use fieldNames', () => {
const customerOptions = [ const customOptions = [
{ {
code: 'zhejiang', code: 'zhejiang',
name: 'Zhejiang', name: 'Zhejiang',
@ -290,7 +290,7 @@ describe('Cascader', () => {
const { container } = render( const { container } = render(
<Cascader <Cascader
options={customerOptions} options={customOptions}
onChange={onChange} onChange={onChange}
fieldNames={{ fieldNames={{
children: 'items', children: 'items',
@ -311,8 +311,7 @@ describe('Cascader', () => {
}); });
it('should show not found content when options.length is 0', () => { it('should show not found content when options.length is 0', () => {
const customerOptions: any[] = []; const { container } = render(<Cascader options={[]} />);
const { container } = render(<Cascader options={customerOptions} />);
toggleOpen(container); toggleOpen(container);
expect(getDropdown(container)).toMatchSnapshot(); expect(getDropdown(container)).toMatchSnapshot();
}); });
@ -398,7 +397,7 @@ describe('Cascader', () => {
}); });
it('placement work correctly', async () => { it('placement work correctly', async () => {
const customerOptions = [ const customOptions = [
{ {
value: 'zhejiang', value: 'zhejiang',
label: '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); toggleOpen(container);
// Inject in tests/__mocks__/rc-trigger.js // Inject in tests/__mocks__/rc-trigger.js