MadCcc
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
components/cascader/__tests__/index.test.js
|
|
@ -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(() => {}); |
|
|
|