Skip to content

Commit b4f6efc

Browse files
committed
fix coverage
1 parent c8deea3 commit b4f6efc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

flutter_news_example/lib/main/bootstrap/bootstrap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Future<void> bootstrap(AppBuilder builder) async {
3737
analyticsRepository: analyticsRepository,
3838
);
3939
Bloc.observer = blocObserver;
40-
final storageDirectory = await getApplicationDocumentsDirectory();
40+
final storageDirectory = await getApplicationSupportDirectory();
4141
HydratedBloc.storage = await HydratedStorage.build(
4242
storageDirectory: HydratedStorageDirectory(storageDirectory.path),
4343
);

flutter_news_example/test/categories/bloc/categories_state_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ void main() {
2020
);
2121
});
2222

23+
test('getCategoryName returns null when not found', () {
24+
final state = CategoriesState.initial();
25+
expect(state.getCategoryName('unknown'), isNull);
26+
});
27+
2328
group('copyWith', () {
2429
test(
2530
'returns same object '

0 commit comments

Comments
 (0)