ant-design/components/icon/__tests__/index.test.js
2017-09-15 10:50:45 +08:00

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