remove unused method from tests

master
mucahit.inel 4 years ago
parent c3ad78218b
commit b65756a5ac
  1. 8
      __tests__/carousel.spec.tsx

@ -304,8 +304,8 @@ describe('<Carousel />', () => {
}); });
it('should invoke beforeChange when beforeChange prop is defined on slide', async () => { it('should invoke beforeChange when beforeChange prop is defined on slide', async () => {
const onBeforeChange = (direction: SlideDirection) => { const onBeforeChange = (_: SlideDirection) => {
console.log(direction); return;
}; };
const stub = jest.fn(onBeforeChange); const stub = jest.fn(onBeforeChange);
const { getByTestId } = render( const { getByTestId } = render(
@ -328,8 +328,8 @@ describe('<Carousel />', () => {
}); });
it('should invoke afterChange when afterChange prop is defined on slide', async () => { it('should invoke afterChange when afterChange prop is defined on slide', async () => {
const onAfterChange = (direction: SlideDirection) => { const onAfterChange = (_: SlideDirection) => {
console.log(direction); return;
}; };
const stub = jest.fn(onAfterChange); const stub = jest.fn(onAfterChange);
const { getByTestId } = render( const { getByTestId } = render(

Loading…
Cancel
Save