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

prefix.js « lib « test « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18a37f3ccd1e0e61f41b7753d5a5f79efd823330 (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('prefix')
  t.equal(
    joinedOutput(),
    npm.prefix,
    'outputs npm.prefix'
  )
})