reset(sharedPreferences); calls count

This commit is contained in:
Vadim 2023-06-23 10:10:15 +02:00
parent 1252096f4c
commit f5b71e98b6

View file

@ -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);