mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-03 05:59:37 +08:00
Test out Note deletion
This commit is contained in:
@ -48,6 +48,13 @@ void main() {
|
|||||||
notes.sort();
|
notes.sort();
|
||||||
|
|
||||||
expect(loadedNotes, notes);
|
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