test: skip windows test

This commit is contained in:
Aleksey Kulikov 2022-06-23 18:25:19 +03:00
parent 5f1831506b
commit dfefc55866
2 changed files with 15 additions and 12 deletions

View file

@ -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', () {