1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-04 12:40:05 +02:00
Files
minifyfromhtml/node_modules/npm/test/tap/ls-no-results.js
2022-08-20 18:51:33 +02:00

13 lines
368 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var test = require("tap").test
var spawn = require("child_process").spawn
var node = process.execPath
var npm = require.resolve("../../")
var args = [ npm, "ls", "ceci nest 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()
})
})