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: e8295cf6a5b3c3d2f5b66e6e49f613f600f14b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const t = require('tap')
const { load: loadMockNpm } = require('../../fixtures/mock-npm')

t.test('prefix', async t => {
  const { joinedOutput, npm } = await loadMockNpm(t, { load: false })
  await npm.exec('prefix', [])
  t.equal(
    joinedOutput(),
    npm.prefix,
    'outputs npm.prefix'
  )
})