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

15 lines
359 B
JavaScript
Raw Normal View History

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();
});
});