From 8bef38c31064f94e148f1dca4b7084919c0bb8b7 Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Fri, 29 Oct 2021 10:38:22 +0300 Subject: [PATCH] check if '.git/objects/' folder is actually deleted --- test/odb_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/test/odb_test.dart b/test/odb_test.dart index 63bf698..6609eb5 100644 --- a/test/odb_test.dart +++ b/test/odb_test.dart @@ -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()),