ant-design-vue/components/collapse/__tests__/index.test.js

18 lines
407 B
JavaScript
Raw Normal View History

2019-03-15 11:20:37 +08:00
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();
});
});