@cainiaofe/cn-ui-m
Version:
13 lines (12 loc) • 484 B
JavaScript
// CnIcon组件的单元测试
import React from 'react';
import { render } from '@testing-library/react';
import { CnIcon } from '../index';
describe('CnIcon组件检查', function () {
test('renders CnIcon correctly', function () {
var container = render(React.createElement(CnIcon, { type: "case", size: "xl", style: {
color: 'blue',
} })).container;
expect(container.querySelector('.cn-ui-m-icon')).toBeInTheDocument();
});
});