Skip to content

Commit 8ee196b

Browse files
fix gh actions
1 parent e872211 commit 8ee196b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/bloc_test.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ void main() {
1616
expect: () => [],
1717
);
1818

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+
);
1926
blocTest<SettingsBloc, SettingsState>(
2027
'emits new settings model, settings saved correctly and getParamsList has the new setting',
2128
build: () => SettingsBloc(_settingsRepository),

0 commit comments

Comments
 (0)