mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
check if '.git/objects/' folder is actually deleted
This commit is contained in:
parent
6534cae785
commit
8bef38c310
1 changed files with 1 additions and 0 deletions
|
@ -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>()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue