mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +08:00
47e23d4137
close #14058 #12212
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();
|
|
});
|
|
});
|