File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 '
You can’t perform that action at this time.
0 commit comments