()
| 239 | it('displays a spinner when isPending prop is true', async function () { |
| 240 | let onPressSpy = jest.fn(); |
| 241 | function TestComponent() { |
| 242 | let [pending, setPending] = useState(false); |
| 243 | return ( |
| 244 | <Button |
| 245 | onPress={() => { |
| 246 | setPending(true); |
| 247 | onPressSpy(); |
| 248 | }} |
| 249 | isPending={pending}> |
| 250 | {({isPending}) => ( |
| 251 | <> |
nothing calls this directly
no outgoing calls
no test coverage detected