• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict'
2var test = require('tap').test
3var log = require('npmlog')
4var npm = require('../../lib/npm.js')
5
6var idealTree = {
7  package: {
8    name: 'a b c',
9    version: '3.what'
10  },
11  children: [],
12  warnings: []
13}
14
15test('setup', function (t) {
16  npm.load({}, t.end)
17})
18
19test('validate-tree', function (t) {
20  log.disableProgress()
21  var validateTree = require('../../lib/install/validate-tree.js')
22  validateTree(idealTree, log.newGroup('validate'), function (er) {
23    t.pass("we didn't crash")
24    t.end()
25  })
26})
27