blob: 46f0db232eb262d4dc63bf1326c92d04d26c9708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var common = require("../common-tap.js")
var test = require("tap").test
test("cache add", function (t) {
common.npm(["cache", "add", "superfoo"], {}, function (er, c, so, se) {
if (er) throw er
t.ok(c, "got non-zero exit code")
t.equal(so, "", "nothing printed to stdout")
t.similar(se, /404 Not Found: superfoo/, "got expected error")
t.end()
})
})
|