Skip to content
Myr

test.command.name.js

This file

Path

test/test.command.name.js

12 lines · 337 bytes · JavaScript

Last changed by

Merge pull request #266 from zhiyelee/fixThomas Geraghtybefore adoption4fd6aa6

History of this file

Take it

Merge pull request #264 from tonylukasavage/name_funcThomas Geraghtybefore adoptionf1d6a0c

lines 1–12why, one step back
1var program = require('../')
2 , should = require('should');34program5 .command('mycommand [options]', 'this is my command');67program.parse(['node', 'test']);89program.name.should.be.a.Function;10program.name().should.equal('test');11program.commands[0].name().should.equal('mycommand');12program.commands[1].name().should.equal('help');