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

13 lines
309 B
JavaScript
Raw Normal View History

2016-12-14 14:48:09 +08:00
import React from 'react';
2017-09-15 10:50:45 +08:00
import { render } from 'enzyme';
import Icon from '..';
2016-12-14 14:48:09 +08:00
describe('Icon', () => {
it('should render to a <i class="xxx"></i>', () => {
2017-09-15 10:50:45 +08:00
const wrapper = render(
<Icon type="appstore" className="my-icon-classname" />
);
expect(wrapper).toMatchSnapshot();
2016-12-14 14:48:09 +08:00
});
});