From f5b71e98b60e563a5fd9cacd1eefff33094bd6a3 Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 23 Jun 2023 10:10:15 +0200 Subject: [PATCH] `reset(sharedPreferences);` calls count --- test/data/shared_prefs_service_test.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/data/shared_prefs_service_test.dart b/test/data/shared_prefs_service_test.dart index c0401e5..6143141 100644 --- a/test/data/shared_prefs_service_test.dart +++ b/test/data/shared_prefs_service_test.dart @@ -22,6 +22,10 @@ void main() { service = UserPreferencesService(sharedPreferences); }); + tearDown(() { + reset(sharedPreferences); + }); + group('migrateOldKeys()', () { test('no legacy keys', () async { when(() => sharedPreferences.getInt("curIsoIndex")).thenReturn(null);