Sha256: 66aff2fc448d33ae471b936644901b02a72a525e5bdaf41b986fb42251603de9

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

'use strict'
var test = require('tap').test
var requireInject = require('require-inject')
var npm = require('../../lib/npm.js')

test('setup', function (t) {
  npm.load({progress: false}, t.end)
})

test('outdated', function (t) {
  var rptError = new Error('read-package-tree')
  var outdated = requireInject('../../lib/outdated.js', {
    'read-package-tree': function (dir, cb) {
      cb(rptError)
    }
  })
  outdated([], function (err) {
    t.is(err, rptError)
    t.end()
  })
})

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/deps/npm/test/tap/outdated-bad-read-tree.js
node-compiler-0.9.0 vendor/node-v7.2.1/deps/npm/test/tap/outdated-bad-read-tree.js
node-compiler-0.8.0 vendor/node-v7.2.0/deps/npm/test/tap/outdated-bad-read-tree.js
node-compiler-0.7.0 vendor/node-v6.9.1/deps/npm/test/tap/outdated-bad-read-tree.js
node-compiler-0.7.0 vendor/node-v7.1.0/deps/npm/test/tap/outdated-bad-read-tree.js