mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +08:00
Test out Note deletion
This commit is contained in:
@ -48,6 +48,13 @@ void main() {
|
||||
notes.sort();
|
||||
|
||||
expect(loadedNotes, notes);
|
||||
|
||||
await Future.forEach(notes, (Note note) async {
|
||||
await note.remove();
|
||||
});
|
||||
expect(tempDir.listSync(recursive: true).length, 0);
|
||||
expect(File(n1Path).existsSync(), isFalse);
|
||||
expect(File(n2Path).existsSync(), isFalse);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user