UNPKG

425 BJavaScriptView Raw
1var readInstalled = require('../read-installed.js')
2var test = require('tap').test
3var path = require('path');
4
5test('"latest" version is valid', function(t) {
6 // This test verifies npm#3860
7 readInstalled(
8 path.join(__dirname, 'fixtures/peer-at-latest'),
9 { log: console.error },
10 function(err, map) {
11 t.notOk(map.dependencies.debug.invalid, 'debug@latest is satisfied by a peer')
12 t.end()
13 })
14})