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.

29 lines
696 B

var common = require("../common-tap.js")
11 years ago
var test = require("tap").test
var npm = require("../../")
var mkdirp = require("mkdirp")
var rimraf = require("rimraf")
11 years ago
var mr = require("npm-registry-mock")
// config
var pkg = __dirname + '/outdated-include-devdependencies'
mkdirp.sync(pkg + "/cache")
11 years ago
test("includes devDependencies in outdated", function (t) {
process.chdir(pkg)
mr(common.port, function (s) {
npm.load({cache: pkg + "/cache", registry: common.registry}, function () {
11 years ago
npm.outdated(function (er, d) {
t.equal("1.5.1", d[0][3])
s.close()
t.end()
})
})
})
})
test("cleanup", function (t) {
rimraf.sync(pkg + "/cache")
t.end()
})