1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-04 20:40:07 +02:00

update packages to latest version

This commit is contained in:
s2
2022-08-20 18:51:33 +02:00
parent 09663a35a5
commit 806ebf9a57
4513 changed files with 366205 additions and 92512 deletions

34
node_modules/npm/test/tap/cache-add-unpublished.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
var common = require("../common-tap.js")
var test = require("tap").test
var mr = require("npm-registry-mock")
test("cache add", function (t) {
setup(function (er, s) {
if (er) {
throw er
}
common.npm([
"cache",
"add",
"superfoo",
"--registry=http://localhost:1337/"
], {}, 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")
s.close()
t.end()
})
})
})
function setup (cb) {
var s = require("http").createServer(function (req, res) {
res.statusCode = 404
res.end("{\"error\":\"not_found\"}\n")
})
s.listen(1337, function () {
cb(null, s)
})
}