You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
523 B

'use strict'
var test = require('tap').test
var log = require('npmlog')
var npm = require('../../lib/npm.js')
var idealTree = {
package: {
name: 'a b c',
version: '3.what'
},
children: [],
warnings: []
}
test('setup', function (t) {
npm.load({}, t.end)
})
test('validate-tree', function (t) {
log.disableProgress()
var validateTree = require('../../lib/install/validate-tree.js')
validateTree(idealTree, log.newGroup('validate'), function (er) {
t.pass("we didn't crash")
t.end()
})
})