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

prefix.js « commands « lib « test - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f059e73a7ec5b715a8b3b4a4e0845bcaff84dc1 (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('prefix', [])
  t.equal(
    joinedOutput(),
    npm.prefix,
    'outputs npm.prefix'
  )
})