1 | var readInstalled = require('../read-installed.js')
|
2 | var test = require('tap').test
|
3 | var path = require('path');
|
4 |
|
5 | test('"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 | })
|