Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
abetomo authored and roman-vanesyan committed Aug 7, 2018
1 parent ad34717 commit a604a5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test.commandAsterisk.action.js
@@ -0,0 +1,15 @@
var program = require('../')
, should = require('should');

var val = false;
program
.version('0.0.1')
.command('*')
.description('test')
.action(function () {
val = true;
});

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

val.should.be.false()

0 comments on commit a604a5d

Please sign in to comment.