HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/douven.komma.pro/node_modules/npm/test/tap/help.js
var test = require('tap').test
var common = require('../common-tap')

test('npm food', function (t) {
  common.npm('food', {}, function (err, code, stdout, stderr) {
    if (err) throw err
    t.equal(code, 1, 'command ran with error')

    t.has(stdout, 'Did you mean this?')

    t.notOk(stderr, 'stderr should be empty')
    t.end()
  })
})

test('npm jet', function (t) {
  common.npm('jet', {}, function (err, code, stdout, stderr) {
    if (err) throw err
    t.equal(code, 1, 'command ran with error')

    t.has(stdout, 'Did you mean one of these?')

    t.notOk(stderr, 'stderr should be empty')
    t.end()
  })
})