Welcome to mirror list, hosted at ThFree Co, Russian Federation.

root.js « lib « test « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b91654c6c98fea623612b685ea0ee319b5c2d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const t = require('tap')
const { real: mockNpm } = require('../fixtures/mock-npm')

t.test('prefix', async (t) => {
  const { joinedOutput, command, npm } = mockNpm(t)
  await npm.load()
  await command('root')
  t.equal(
    joinedOutput(),
    npm.dir,
    'outputs npm.dir'
  )
})