mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
test(reference): add tests for tag
This commit is contained in:
parent
6b076f3d07
commit
2f896e6180
1 changed files with 3 additions and 2 deletions
|
@ -51,6 +51,7 @@ void main() {
|
||||||
{
|
{
|
||||||
'refs/heads/feature': '5aecfa0fb97eadaac050ccb99f03c3fb65460ad4',
|
'refs/heads/feature': '5aecfa0fb97eadaac050ccb99f03c3fb65460ad4',
|
||||||
'refs/heads/master': '78b8bf123e3952c970ae5c1ce0a3ea1d1336f6e8',
|
'refs/heads/master': '78b8bf123e3952c970ae5c1ce0a3ea1d1336f6e8',
|
||||||
|
'refs/tags/v0.1': '78b8bf123e3952c970ae5c1ce0a3ea1d1336f6e8',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -79,8 +80,8 @@ void main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('checks if reference is a tag', () {
|
test('checks if reference is a tag', () {
|
||||||
final ref = Reference.lookup(repo, 'refs/heads/master');
|
final ref = Reference.lookup(repo, 'refs/tags/v0.1');
|
||||||
expect(ref.isTag, false);
|
expect(ref.isTag, true);
|
||||||
ref.free();
|
ref.free();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue