Test out Note deletion

This commit is contained in:
Vishesh Handa
2019-09-26 16:46:41 +02:00
parent 6f8a149d57
commit 2b43de6e93

View File

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