summaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/node_modules/read-installed/test/peer-dep-at-latest.js
blob: 8f2436fa1ecf57f04e965a5bf1a99fe723ff55e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var readInstalled = require('../read-installed.js')
var test = require('tap').test
var path = require('path');

test('"latest" version is valid', function(t) {
  // This test verifies npm#3860
  readInstalled(
    path.join(__dirname, 'fixtures/peer-at-latest'),
    { log: console.error },
    function(err, map) {
      t.notOk(map.dependencies.debug.invalid, 'debug@latest is satisfied by a peer')
      t.end()
    })
})