diff --git a/packages/react-test/src/index.test.tsx b/packages/react-test/src/index.test.tsx index 202ce52..0b4380a 100644 --- a/packages/react-test/src/index.test.tsx +++ b/packages/react-test/src/index.test.tsx @@ -1,4 +1,4 @@ -import { TestUtils } from './index' +import { TestUtils, select } from './index' import React from 'react' describe('TestUtils', () => { @@ -13,6 +13,114 @@ describe('TestUtils', () => { } } + type ChangeFn1 = (event: React.ChangeEvent) => void + type ChangeFn2 = (event: React.ChangeEvent) => void + + describe('Selector', () => { + interface FormProps { + onSubmit: () => void + onClick: () => void + onChange1: ChangeFn1 + onChange2: ChangeFn2 + value1: string + value2: string + } + + class Form extends React.PureComponent { + render() { + const {props} = this + return ( +
+ type stuff + +