Skip to content
Myr

test.command.help.js

This file

Path

test/test.command.help.js

10 lines · 266 bytes · JavaScript

Last changed by

Merge pull request #450 from zhiyelee/lizhiye/fixtestZhiye Libefore adoption272e22f

History of this file

Take it

Merge pull request #416 from zhiyelee/zhiyelee/fixHelpUndefinedZhiye Libefore adoption1559b3e

lines 1–10why, one step back
1var program = require('../')
2 , sinon = require('sinon').sandbox.create()3 , should = require('should');456program.command('mycommand [options]');78program.parse(['node', 'test']);910program.commandHelp().should.equal('\n Commands:\n\n mycommand [options]\n');