mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 12:40:05 +02:00
update packages to latest version
This commit is contained in:
12
node_modules/npm/test/tap/ls-no-results.js
generated
vendored
Normal file
12
node_modules/npm/test/tap/ls-no-results.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
var test = require("tap").test
|
||||
var spawn = require("child_process").spawn
|
||||
var node = process.execPath
|
||||
var npm = require.resolve("../../")
|
||||
var args = [ npm, "ls", "ceci n’est pas une package" ]
|
||||
test("ls exits non-zero when nothing found", function (t) {
|
||||
var child = spawn(node, args)
|
||||
child.on("exit", function (code) {
|
||||
t.notEqual(code, 0)
|
||||
t.end()
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user