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
123456789101112131415var program = require('../') , should = require('should');
var error;
try { program .command('fail') .alias('fail');} catch (e) { error = e;}
error.should.deepEqual(new Error('Command alias can\'t be the same as its name'));