feat(tag): add more bindings and api methods

This commit is contained in:
Aleksey Kulikov 2021-10-06 15:36:17 +03:00
parent 0ed5e7c797
commit c88b75b0fd
3 changed files with 72 additions and 0 deletions

View file

@ -80,5 +80,16 @@ void main() {
newTagTarget.free();
signature.free();
});
test('returns list of tags in repository', () {
expect(Tag.list(repo), ['v0.1', 'v0.2']);
});
test('successfully deletes tag', () {
expect(Tag.list(repo), ['v0.1', 'v0.2']);
tag.delete();
expect(Tag.list(repo), ['v0.1']);
});
});
}