({ name })
| 148 | it("should give same instance of handlers as value changes", () => { |
| 149 | const spy = jest.fn(); |
| 150 | const MyField = ({ name }) => { |
| 151 | const { input } = useField(name, { subscription: { value: true } }); |
| 152 | const { onChange, onFocus, onBlur } = input; |
| 153 | spy(onChange, onFocus, onBlur); |
| 154 | return <input {...input} />; |
| 155 | }; |
| 156 | render( |
| 157 | <Form onSubmit={onSubmitMock}> |
| 158 | {() => ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…