mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +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();
|
|
});
|
|
});
|