diff --git a/test-ci/src/__tests__/ChecedBox.tsx b/test-ci/src/__tests__/ChecedBox.tsx new file mode 100644 index 000000000..9951664c2 --- /dev/null +++ b/test-ci/src/__tests__/ChecedBox.tsx @@ -0,0 +1,17 @@ +import CheckBox from '../lib/CheckBox'; +import renderer from 'react-test-renderer'; +import { bool } from 'prop-types'; + +it('CheckBox', () => { + // const component = TestRenderer.create(Radio); + const component = renderer.create( + + 按钮 + , + ); + expect(component.root.props.color).toBe('red'); + expect(component.root.props.checkedIcon).toBe('circle'); + expect(component.root.props.unCheckedIcon).toBe('error'); + expect(component.root.props.checked).toBeTruthy(); + expect(component.root.props.textStyle).toMatchObject({ fontSize: 20 }); +});