mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
test: fix cascader test coverage (#33802)
This commit is contained in:
parent
5d2994ec12
commit
9cf0dca8fc
@ -475,6 +475,12 @@ describe('Cascader', () => {
|
||||
expect(onChange).toHaveBeenCalledWith(['Zhejiang', 'Hangzhou', 'West Lake'], expect.anything());
|
||||
});
|
||||
|
||||
it('rtl should work well with placement', () => {
|
||||
const wrapper = mount(<Cascader options={options} direction="rtl" />);
|
||||
|
||||
expect(wrapper.find('Trigger').prop('popupPlacement')).toEqual('bottomRight');
|
||||
});
|
||||
|
||||
describe('legacy props', () => {
|
||||
it('popupClassName', () => {
|
||||
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
|
||||
|
Loading…
Reference in New Issue
Block a user