ant-design/components/icon/__tests__/index.test.js
2018-07-23 09:55:13 +08:00

13 lines
322 B
JavaScript

import React from 'react';
import { render } from 'enzyme';
import Icon from '..';
describe('Icon', () => {
it('should render to a <i class="xxx"><svg>...</svg></i>', () => {
const wrapper = render(
<Icon type="message" className="my-icon-classname" />
);
expect(wrapper).toMatchSnapshot();
});
});