test.command.failOnSameAlias.js
This file
Path
test/test.command.failOnSameAlias.js
14 lines · 244 bytes · JavaScript
Last changed by
Fail when using same command and alias (#491)Augusto Franzoiabefore adoption2f07e29
History of this fileTake it
Fail when using same command and alias (#491)Augusto Franzoiabefore adoption2f07e29
lines 1–14why, one step back1var program = require('../')2 , should = require('should');34var error;56try {7 program8 .command('fail')9 .alias('fail');10} catch (e) {11 error = e;12}1314error.should.deepEqual(new Error('Command alias can\'t be the same as its name'));