You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
524 B

var test = require("tap").test
, npm = require("../../")
test("returns a list of removed items", function (t) {
t.plan(1)
setup(function () {
npm.install(".", function (err) {
if (err) return t.fail(err)
npm.uninstall("once", "ini", "lala", function (err, d) {
if (err) return t.fail(err)
t.same(d.sort(), ["once", "ini"].sort())
t.end()
})
})
})
})
function setup (cb) {
process.chdir(__dirname + "/uninstall-package")
npm.load(function () {
cb()
})
}