-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update unit tests for usState support
Had to do a bit of type casting in the unit tests to get around the `Nothing?` type of PinDetails giving the compiler ambiguous overloading but that wasn't too big an issue. It's worth noting that making ElementState generic did break the tests (i.e. it was not reverse compatibile) because the tests explicitly referenced the types `ElementState<PanDetails>` and `StatefulElementListner<PanDetails>` callback. Referencing these types in this way is not necessary and it's like that GoPuff did not do this in which case it would not even be a breaking change for them.
- Loading branch information
1 parent
8d68770
commit df8523d
Showing
3 changed files
with
58 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters