mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: fix failing tests
This commit is contained in:
parent
7ac9937fcf
commit
a28bc46419
1 changed files with 8 additions and 7 deletions
|
@ -15,14 +15,15 @@ void main() {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('returns the owner validation setting for repository directories', () {
|
test(
|
||||||
expect(Libgit2.ownerValidation, true);
|
'sets and returns the owner validation setting for repository '
|
||||||
});
|
'directories', () {
|
||||||
|
final oldValue = Libgit2.ownerValidation;
|
||||||
|
Libgit2.ownerValidation = !oldValue;
|
||||||
|
expect(Libgit2.ownerValidation, equals(!oldValue));
|
||||||
|
|
||||||
test('sets the owner validation setting for repository directories', () {
|
// Set it back
|
||||||
expect(Libgit2.ownerValidation, true);
|
Libgit2.ownerValidation = oldValue;
|
||||||
Libgit2.ownerValidation = false;
|
|
||||||
expect(Libgit2.ownerValidation, false);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue