Permalink
Browse files

improve unit test for #174

  • Loading branch information...
tonylukasavage committed Oct 23, 2013
1 parent a824896 commit edbcdacae92ee884faeefafce34cd84cda3fdce4
Showing with 9 additions and 2 deletions.
  1. +9 −2 test/test.options.cflags.js
@@ -8,8 +8,15 @@ var program = require('../')
program
.version('0.0.1')
.option('-c, --cflags <cflags>', 'pass options/flags to a compiler')
- .option('-o, --other', 'just some other option');
+ .option('-o, --other', 'just some other option')
+ .option('-x, --xother', 'just some other option')
+ .option('-y, --yother', 'just some other option')
+ .option('-z, --zother', 'just some other option');
-program.parse(['node', 'test', '--cflags', '-DDEBUG', '-o']);
+
+program.parse(['node', 'test', '--cflags', '-DDEBUG', '-o', '-xyz']);
program.should.have.property('cflags', '-DDEBUG');
program.should.have.property('other');
+program.should.have.property('xother');
+program.should.have.property('yother');
+program.should.have.property('zother');

0 comments on commit edbcdac

Please sign in to comment.