You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
407 B
18 lines
407 B
6 years ago
|
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();
|
||
|
});
|
||
|
});
|