We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ebd0de + 1dec337 commit c04d366Copy full SHA for c04d366
1 file changed
test/tests/tag.js
@@ -230,4 +230,21 @@ describe("Tag", function() {
230
assert.equal(object.isCommit(), true);
231
});
232
233
+
234
+ it("can get tag's target id", function() {
235
+ return this.repository.getTagByName(tagName)
236
+ .then(function(tag) {
237
+ assert.equal(commitPointedTo, tag.targetId());
238
+ });
239
240
241
+ it("can get tag's owner", function() {
242
+ var repository = this.repository;
243
244
245
+ var owner = tag.owner();
246
+ assert.ok(owner instanceof Repository);
247
+ assert.equal(repository.path(), owner.path());
248
249
250
0 commit comments