We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e872211 commit 8ee196bCopy full SHA for 8ee196b
test/bloc_test.dart
@@ -16,6 +16,13 @@ void main() {
16
expect: () => [],
17
);
18
19
+ blocTest<SettingsBloc, SettingsState>(
20
+ 'emit default settings model when nothing is changed',
21
+ build: () => SettingsBloc(_settingsRepository),
22
+ act: (bloc) => bloc.add(SettingsUpdatedEvent(settingsModel)),
23
+ // we don't care what's here so no expect. This just sets up config.json
24
+ // properly if it is not created yet, example on GH actions
25
+ );
26
blocTest<SettingsBloc, SettingsState>(
27
'emits new settings model, settings saved correctly and getParamsList has the new setting',
28
build: () => SettingsBloc(_settingsRepository),
0 commit comments