check if '.git/objects/' folder is actually deleted

This commit is contained in:
Aleksey Kulikov 2021-10-29 10:38:22 +03:00
parent 6534cae785
commit 8bef38c310

View file

@ -31,6 +31,7 @@ void main() {
test('throws when trying to get odb and error occurs', () {
Directory('${repo.workdir}.git/objects/').deleteSync(recursive: true);
expect(Directory('${repo.workdir}.git/objects/').existsSync(), false);
expect(
() => repo.odb,
throwsA(isA<LibGit2Error>()),