mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
18 lines
407 B
JavaScript
18 lines
407 B
JavaScript
import { mount } from '@vue/test-utils';
|
|
import Collapse from '..';
|
|
|
|
describe('Collapse', () => {
|
|
it('should support remove expandIcon', () => {
|
|
const wrapper = mount({
|
|
render() {
|
|
return (
|
|
<Collapse expandIcon={() => null}>
|
|
<Collapse.Panel header="header" />
|
|
</Collapse>
|
|
);
|
|
},
|
|
});
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
});
|