Skip to content

Commit

Permalink
fix: flutter analyze issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cevheri committed Nov 27, 2024
1 parent 4385ffc commit 3dae23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conf/local_storage_getx_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void main() {
test('remove method should return true when successful', () async {
// Given
const key = 'test_key';
when(mockPrefs.remove(key)).thenAnswer((_) async => null);
when(mockPrefs.remove(key)).thenAnswer((_) async {});

// When
final result = await storage.remove(key);
Expand All @@ -98,7 +98,7 @@ void main() {

test('clear method should call GetStorage.erase()', () async {
// Given
when(mockPrefs.erase()).thenAnswer((_) async => null);
when(mockPrefs.erase()).thenAnswer((_) async {});

// When
await storage.clear();
Expand Down

0 comments on commit 3dae23f

Please sign in to comment.