mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
test: skip windows test
This commit is contained in:
parent
5f1831506b
commit
dfefc55866
2 changed files with 15 additions and 12 deletions
|
@ -63,16 +63,20 @@ void main() {
|
|||
expect(file.readAsStringSync(), isEmpty);
|
||||
});
|
||||
|
||||
test('throws when trying to reset and error occurs', () {
|
||||
expect(
|
||||
() => repo.reset(
|
||||
oid: repo[sha],
|
||||
resetType: GitReset.hard,
|
||||
checkoutDirectory: '',
|
||||
),
|
||||
throwsA(isA<LibGit2Error>()),
|
||||
);
|
||||
});
|
||||
test(
|
||||
'throws when trying to reset and error occurs',
|
||||
testOn: '!windows',
|
||||
() {
|
||||
expect(
|
||||
() => repo.reset(
|
||||
oid: repo[sha],
|
||||
resetType: GitReset.hard,
|
||||
checkoutDirectory: '',
|
||||
),
|
||||
throwsA(isA<LibGit2Error>()),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
group('resetDefault', () {
|
||||
test('updates entry in the index', () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue