mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
13 lines
309 B
JavaScript
13 lines
309 B
JavaScript
import React from 'react';
|
|
import { render } from 'enzyme';
|
|
import Icon from '..';
|
|
|
|
describe('Icon', () => {
|
|
it('should render to a <i class="xxx"></i>', () => {
|
|
const wrapper = render(
|
|
<Icon type="appstore" className="my-icon-classname" />
|
|
);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|