Skip to content

Commit

Permalink
test: fix test failing because of new storage access
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrit committed Aug 11, 2023
1 parent 473532a commit 3db6c49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/calculator/calculator_cubit/calculator_cubit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ Future<void> main() async {

// Mock the StorageService
storageService = MockStorageService();
when(() => storageService.getValue('activeSheetId'))
.thenAnswer((_) async => '1');
when(() => storageService.saveValue(
key: 'activeSheetId',
value: any(named: 'value'),
)).thenAnswer((_) async => Future.value());
when(() => storageService.getValue('lastSynced'))
.thenAnswer((_) async {});
when(() => storageService.getValue('showSidePanel'))
Expand Down

0 comments on commit 3db6c49

Please sign in to comment.