Files
react-native-devtools-frontend/node_modules/read-installed/test/grandparent-peer-dev.js
T
Paul Lewis 911c1b8a93 Updates node_modules
DISABLE_THIRD_PARTY_CHECK=Package needs updating with node_modules
Change-Id: I889f1b86c586e37307a3e13ad762aa56d1ece150
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1946468
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2019-12-02 14:54:54 +00:00

21 lines
585 B
JavaScript

var readInstalled = require('../read-installed.js')
var test = require('tap').test
var path = require('path');
function allValid(t, map) {
var deps = Object.keys(map.dependencies || {})
deps.forEach(function (dep) {
t.ok(map.dependencies[dep].extraneous, 'dependency ' + dep + ' of ' + map.name + ' is extraneous')
})
}
test('grandparent dev peer dependencies should be extraneous', function(t) {
readInstalled(
path.join(__dirname, 'fixtures/grandparent-peer-dev'),
{ log: console.error },
function(err, map) {
allValid(t, map)
t.end()
})
})