test.command.helpInformation.js
This file
Path
test/test.command.helpInformation.js
21 lines · 487 bytes · JavaScript
Last changed by
removed newline after options and commands headersJared Petersenbefore adoption2c20e91
History of this fileTake it
12345678910111213141516171819202122var program = require('../') , sinon = require('sinon').sandbox.create() , should = require('should');
program.command('somecommand');program.command('anothercommand [options]');
var expectedHelpInformation = [ 'Usage: [options] [command]', '', 'Options:', ' -h, --help output usage information', '', 'Commands:', ' somecommand', ' anothercommand [options]', ''].join('\n');
program.helpInformation().should.equal(expectedHelpInformation);