Created
July 27, 2020 02:15
-
-
Save danahartweg/d55ca149db6fdea43dd6d2f6e4f85015 to your computer and use it in GitHub Desktop.
First filter conditions test - Support boolean properties to flutter_bloc_list_manager
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
blocTest( | |
'formats boolean property values for display without repeating', | |
build: () async { | |
whenListen( | |
_sourceBloc, | |
Stream.value( | |
MockSourceBlocClassItems([_mockItem1, _mockItem2, _mockItem3])), | |
); | |
return FilterConditionsBloc<MockSourceBlocClassItems>( | |
sourceBloc: _sourceBloc, | |
filterProperties: ['conditional'], | |
); | |
}, | |
expect: [ | |
ConditionsInitialized( | |
activeConditions: <String>{}, | |
availableConditions: { | |
'conditional': [ | |
'True', | |
'False', | |
], | |
}, | |
) | |
], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment