/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/npm/test/lib/commands/get.js
22 строки
596 B
npm CLI robot
deps: upgrade npm to 11.10.1
22 фев 2026, 03:19
Не верифицирован
22 фев 2026, 03:19
10172e3
Код
Авторство
О чём код?
const t = require('tap') const { load: loadMockNpm } = require('../../fixtures/mock-npm') t.test('completion', async t => { const { get } = await loadMockNpm(t, { command: 'get' }) const res = await get.completion({ conf: { argv: { remain: ['npm', 'get'] } } }) t.type(res, Array) }) t.test('should retrieve values from config', async t => { const name = 'editor' const value = 'vigor' const { joinedOutput, npm } = await loadMockNpm(t, { config: { [name]: value }, }) await npm.exec('get', [name]) t.equal( joinedOutput(), value, 'outputs config item' ) })