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;
banner?: boolean;
icon?: React.ReactNode;
/** Custome closeIcon */
/** Custom closeIcon */
closeIcon?: React.ReactNode;
action?: React.ReactNode;
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;

View File

@ -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