mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
move version getter into separate class
This commit is contained in:
parent
41e9a39bce
commit
116c6d4fac
7 changed files with 57 additions and 46 deletions
19
test/libgit2_test.dart
Normal file
19
test/libgit2_test.dart
Normal file
|
@ -0,0 +1,19 @@
|
|||
import 'package:libgit2dart/libgit2dart.dart';
|
||||
import 'package:libgit2dart/src/libgit2.dart';
|
||||
import 'package:libgit2dart/src/util.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
group('Libgit2', () {
|
||||
test('returns up to date version of libgit2', () {
|
||||
expect(Libgit2.version, libgit2Version);
|
||||
});
|
||||
|
||||
test('returns list of options libgit2 was compiled with', () {
|
||||
expect(
|
||||
Libgit2.features,
|
||||
{GitFeature.threads, GitFeature.https, GitFeature.ssh, GitFeature.nsec},
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue