jushutch / swiping_card_deck

A widget for swiping through a deck of cards with gestures or buttons.
https://pub.dev/packages/swiping_card_deck
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Write unit tests for swiping_card_deck.dart #9

Closed jushutch closed 3 years ago

jushutch commented 3 years ago

Wrote unit tests to validate swipeLeft and swipeRight hooks, the callback function when the deck is empty, and that only two cards are rendered at a time. These tests bring the line coverage for swiping_card_deck.dart to 100%, but are not comprehensive.

Resolves #2.