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

root.js « commands « lib « test - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9871ddb25dc67534ca572af4fe918a205f54ca2f (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, Npm } = mockNpm(t)
  const npm = new Npm()
  await npm.exec('root', [])
  t.equal(
    joinedOutput(),
    npm.dir,
    'outputs npm.dir'
  )
})