Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyelee committed Oct 11, 2015
1 parent 0a14d4c commit e553d4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test.command.help.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var program = require('../')
, sinon = require('sinon').sandbox.create()
, should = require('should');


program.command('mycommand [options]');

program.parse(['node', 'test']);

program.commandHelp().should.equal('\n Commands:\n\n mycommand [options]\n');




0 comments on commit e553d4c

Please sign in to comment.