The component receives a callback prop and renders a button. We test that the callback prop is called when the button is clicked. ... const onClick = jest.fn();.
確定! 回上一頁