Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

improve unit test for #174

  • Loading branch information...
commit edbcdacae92ee884faeefafce34cd84cda3fdce4 1 parent a824896
@tonylukasavage tonylukasavage authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 test/test.options.cflags.js
View
11 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');
Please sign in to comment.
Something went wrong with that request. Please try again.