Skip to content

Commit eb16e84

Browse files
committed
fix: correct formatting in backup restore manager and update test cases
1 parent d2712ac commit eb16e84

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/providers/backup_restore_manager_provider.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ class BackupRestoreManagerProvider {
317317
String() => sharedPrefs.setString(key, value),
318318
bool() => sharedPrefs.setBool(key, value),
319319
List() => sharedPrefs.setStringList(
320-
key,
321-
value.map((e) => e.toString()).toList(),
322-
),
320+
key,
321+
value.map((e) => e.toString()).toList(),
322+
),
323323
_ => null,
324324
};
325325
}

test/backup_restore_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void main() {
1515
expect(resultInvalid, isA<Delta>());
1616

1717
final validList = [
18-
{'insert': 'Hello World\n'}
18+
{'insert': 'Hello World\n'},
1919
];
2020
final resultValid = poemRichConverter.fromJson(validList);
2121
expect(resultValid.isNotEmpty, true);
@@ -38,7 +38,7 @@ void main() {
3838
"poem": "Content here",
3939
"deletedAt": null,
4040
"poemRich": null,
41-
}
41+
},
4242
],
4343
"prefs": {
4444
"theme": "dark",
@@ -64,7 +64,7 @@ void main() {
6464
"title": "Poem without poemRich key",
6565
"poem": "Another poem content",
6666
"deletedAt": null,
67-
}
67+
},
6868
],
6969
"prefs": <String, dynamic>{},
7070
"image": null,

0 commit comments

Comments
 (0)