• File: peer-dep-at-latest.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/npm/node_modules/read-installed/test/peer-dep-at-latest.js
  • Date Modified: 10/26/1985 11:45 AM
  • File size: 425 bytes
  • MIME-type: text/plain
  • Charset: utf-8
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()
    })
})