blob: 57faec8b60250d4d0dbc840cac1d6746fe6454ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
'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()
})
})
|