1 var common = require('../common-tap')
2 , path = require('path')
3 , test = require('tap').test
4 , rimraf = require('rimraf')
5 , npm = require('../../')
6 , mr = require('npm-registry-mock')
7 , pkg = path.resolve(__dirname, 'outdated-depth')
10 rimraf.sync(pkg + '/node_modules')
11 rimraf.sync(pkg + '/cache')
14 test('outdated depth zero', function (t) {
26 mr(common.port, function (s) {
30 , registry: common.registry
34 npm.install('.', function (er) {
35 if (er) throw new Error(er)
36 npm.outdated(function (err, d) {
37 if (err) throw new Error(err)
38 t.deepEqual(d[0], expected)
48 test("cleanup", function (t) {