1 // should not allow tagging with a valid semver range
2 var common = require("../common-tap.js")
3 var test = require("tap").test
5 test("try to tag with semver range as tag name", function (t) {
6 var cmd = ["tag", "zzzz@1.2.3", "v2.x", "--registry=http://localhost"]
9 }, function (er, code, so, se) {
11 t.similar(se, /Tag name must not be a valid SemVer range: v2.x\n/)