mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +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();
|
|
});
|
|
});
|