mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -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', () {
|
test('throws when trying to get odb and error occurs', () {
|
||||||
Directory('${repo.workdir}.git/objects/').deleteSync(recursive: true);
|
Directory('${repo.workdir}.git/objects/').deleteSync(recursive: true);
|
||||||
|
expect(Directory('${repo.workdir}.git/objects/').existsSync(), false);
|
||||||
expect(
|
expect(
|
||||||
() => repo.odb,
|
() => repo.odb,
|
||||||
throwsA(isA<LibGit2Error>()),
|
throwsA(isA<LibGit2Error>()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue