Skip to content

Commit ced37ee

Browse files
committed
chore: remove useless test case
1 parent d3e31df commit ced37ee

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/index.spec.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook';
2-
import { resetWarned } from '@rc-component/util/lib/warning';
32
import React, { useEffect, useState } from 'react';
43
import type { CascaderRef, BaseOptionType, CascaderProps } from '../src';
54
import Cascader from '../src';
@@ -514,24 +513,6 @@ describe('Cascader.Basic', () => {
514513
expect(wrapper.isOpen()).toBeTruthy();
515514
});
516515

517-
it('warning onPopupVisibleChange & popupClassName', () => {
518-
resetWarned();
519-
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
520-
const onPopupVisibleChange = jest.fn();
521-
const wrapper = mount(
522-
<Cascader
523-
open
524-
onPopupVisibleChange={onPopupVisibleChange}
525-
popupClassName="legacy-cls"
526-
placement="topRight"
527-
/>,
528-
);
529-
530-
expect(wrapper.exists('.legacy-cls')).toBeTruthy();
531-
532-
errorSpy.mockRestore();
533-
});
534-
535516
it('should support custom expand icon(text icon)', () => {
536517
const wrapper = mount(
537518
<Cascader

0 commit comments

Comments
 (0)