Skip to content

Instantly share code, notes, and snippets.

@danahartweg
Created July 27, 2020 02:15
Show Gist options
  • Save danahartweg/d55ca149db6fdea43dd6d2f6e4f85015 to your computer and use it in GitHub Desktop.
Save danahartweg/d55ca149db6fdea43dd6d2f6e4f85015 to your computer and use it in GitHub Desktop.
First filter conditions test - Support boolean properties to flutter_bloc_list_manager
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