UNPKG

@cainiaofe/cn-ui-m

Version:
20 lines (19 loc) 638 B
import React from 'react'; import { render } from '@testing-library/react'; import { CnSelector } from '../index'; var options = [ { label: '全部工单', value: 'ALL' }, { label: '处理中', value: 'PROCESSING' }, { label: '待评价', value: 'UNAPPRAISED', }, { label: '已评价', value: 'APPRAISED' }, { label: '已取消', value: 'CANCELED' }, ]; describe('CnSelector', function () { it('should render correctly', function () { var container = render(React.createElement(CnSelector, { dataSource: options })).container; expect(container).toBeInTheDocument(); }); });