mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 06:18:30 +08:00
15 lines
359 B
JavaScript
15 lines
359 B
JavaScript
|
import React from 'react';
|
||
|
import { mount } from 'enzyme';
|
||
|
import Collapse from '..';
|
||
|
|
||
|
describe('Collapse', () => {
|
||
|
it('should support remove expandIcon', () => {
|
||
|
const wrapper = mount(
|
||
|
<Collapse expandIcon={() => null}>
|
||
|
<Collapse.Panel header="header" />
|
||
|
</Collapse>
|
||
|
);
|
||
|
expect(wrapper.render()).toMatchSnapshot();
|
||
|
});
|
||
|
});
|