From b65756a5acb46f6e73a07aedac82bbbd22f50ea7 Mon Sep 17 00:00:00 2001 From: "mucahit.inel" Date: Fri, 18 Dec 2020 12:55:31 +0300 Subject: [PATCH] remove unused method from tests --- __tests__/carousel.spec.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/carousel.spec.tsx b/__tests__/carousel.spec.tsx index f639711..23bfe23 100644 --- a/__tests__/carousel.spec.tsx +++ b/__tests__/carousel.spec.tsx @@ -304,8 +304,8 @@ describe('', () => { }); it('should invoke beforeChange when beforeChange prop is defined on slide', async () => { - const onBeforeChange = (direction: SlideDirection) => { - console.log(direction); + const onBeforeChange = (_: SlideDirection) => { + return; }; const stub = jest.fn(onBeforeChange); const { getByTestId } = render( @@ -328,8 +328,8 @@ describe('', () => { }); it('should invoke afterChange when afterChange prop is defined on slide', async () => { - const onAfterChange = (direction: SlideDirection) => { - console.log(direction); + const onAfterChange = (_: SlideDirection) => { + return; }; const stub = jest.fn(onAfterChange); const { getByTestId } = render(