import React from 'react';
import TestUtils from 'react-dom/test-utils';
import { wrap } from 'react-stateless-wrapper';
import AntIcon from '..';
const Icon = wrap(AntIcon);
describe('Icon', () => {
let icon;
let iconNode;
beforeEach(() => {
icon = TestUtils.renderIntoDocument(
);
iconNode = TestUtils.findRenderedDOMComponentWithTag(icon, 'I');
});
it('should render to a ', () => {
expect(iconNode.tagName).toBe('I');
expect(iconNode.className).toContain('my-icon-classname');
expect(iconNode.className).toContain('anticon');
expect(iconNode.className).toContain('anticon-appstore');
});
});