blob: d6bfa0d8fc2bb75ee27c004ffa029dec0ef60992 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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()
})
}
|