Skip to content

Commit

Permalink
issue#309: Fix tests for swipe direction
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrowd committed Feb 11, 2019
1 parent 77b6fb5 commit 04fb23b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ describe("Slider", function() {

const swipeProps = component.find(Swipe).first().props();

expect(swipeProps.onSwipeUp).toBe(componentInstance.onSwipeBackwards);
expect(swipeProps.onSwipeDown).toBe(componentInstance.onSwipeForward);
expect(swipeProps.onSwipeUp).toBe(componentInstance.onSwipeForward);
expect(swipeProps.onSwipeDown).toBe(componentInstance.onSwipeBackwards);
});
});

Expand All @@ -688,8 +688,8 @@ describe("Slider", function() {

const swipeProps = component.find(Swipe).first().props();

expect(swipeProps.onSwipeUp).toBe(componentInstance.onSwipeForward);
expect(swipeProps.onSwipeDown).toBe(componentInstance.onSwipeBackwards);
expect(swipeProps.onSwipeUp).toBe(componentInstance.onSwipeBackwards);
expect(swipeProps.onSwipeDown).toBe(componentInstance.onSwipeForward);
});
});
});
Expand Down

0 comments on commit 04fb23b

Please sign in to comment.