Skip to content

Commit 0057e47

Browse files
mattyclarksonJohn Haley
authored andcommitted
Allow overriding the tag name in the testTag function
This allows new tags to be created and tested
1 parent 08698af commit 0057e47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests/tag.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ describe("Tag", function() {
1515
var commitPointedTo = "32789a79e71fbc9e04d3eff7425e1771eb595150";
1616
var tagMessage = "This is an annotated tag\n";
1717

18-
function testTag(tag) {
19-
assert.equal(tag.name(), tagName);
18+
function testTag(tag, name) {
19+
assert.equal(tag.name(), name || tagName);
2020
assert.equal(tag.targetType(), Obj.TYPE.COMMIT);
2121
assert.equal(tag.message(), tagMessage);
2222

0 commit comments

Comments
 (0)