mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -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', () {
|
||||
expect(Libgit2.ownerValidation, true);
|
||||
});
|
||||
test(
|
||||
'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', () {
|
||||
expect(Libgit2.ownerValidation, true);
|
||||
Libgit2.ownerValidation = false;
|
||||
expect(Libgit2.ownerValidation, false);
|
||||
// Set it back
|
||||
Libgit2.ownerValidation = oldValue;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue