]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/test/tap/semver-tag.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / test / tap / semver-tag.js
1 // should not allow tagging with a valid semver range
2 var common = require("../common-tap.js")
3 var test = require("tap").test
4
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"]
7   common.npm(cmd, {
8     stdio: "pipe"
9   }, function (er, code, so, se) {
10     if (er) throw er
11     t.similar(se, /Tag name must not be a valid SemVer range: v2.x\n/)
12     t.equal(code, 1)
13     t.end()
14   })
15 })