-
-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flow types and enable flow types testing on CI (#896)
* Fix broken unit tests The tests were using "assert" function wrong. "assert" is defined as: assert(value, [message]) The tests passed two arguments in an attempt to compare them while the only thing that happened was that the first value was checked for being truthy. * Fix flow types and enable flow testing on CI Types fixed by making "getChoiceIndex" method follow types and be a class property rather than class method. Class methods are "read-only" in flow and that wasn't compatible with flow types that are defining that function as a property (to allow overriding through prototype changing).
- Loading branch information
Showing
4 changed files
with
59 additions
and
48 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
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