master
Hasan Genc 4 years ago
parent 18d8f8206e
commit 1e53d90951
  1. 2
      __tests__/arrow.spec.tsx

@ -7,7 +7,7 @@ describe('<Arrow />', () => {
it('should call onClick prop when click event occurs', async () => {
const onClick = jest.fn();
const { getByRole } = render(<Arrow onClick={onClick} />);
const { getByRole } = render(<Arrow direction="left" onClick={onClick} />);
fireEvent.click(getByRole('button'));
expect(onClick).toHaveBeenCalled();

Loading…
Cancel
Save