|
|
@ -9,9 +9,8 @@ void main() {
|
|
|
|
expect(themeCubit.state.theme, equals(const DashTheme()));
|
|
|
|
expect(themeCubit.state.theme, equals(const DashTheme()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
group('themeSelected', () {
|
|
|
|
|
|
|
|
blocTest<ThemeCubit, ThemeState>(
|
|
|
|
blocTest<ThemeCubit, ThemeState>(
|
|
|
|
'emits selected theme',
|
|
|
|
'themeSelected emits selected theme',
|
|
|
|
build: ThemeCubit.new,
|
|
|
|
build: ThemeCubit.new,
|
|
|
|
act: (bloc) => bloc.themeSelected(const SparkyTheme()),
|
|
|
|
act: (bloc) => bloc.themeSelected(const SparkyTheme()),
|
|
|
|
expect: () => [
|
|
|
|
expect: () => [
|
|
|
@ -19,5 +18,4 @@ void main() {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|