Sha256: 229f18d81a8c22642df543a1cf07040d7a565a3435904c04ae03ce5871aad997

Contents?: true

Size: 711 Bytes

Versions: 7

Compression:

Stored size: 711 Bytes

Contents

diff --git a/test/values.js b/test/values.js
index efad789..7fa1078 100644
--- a/test/values.js
+++ b/test/values.js
@@ -26,6 +26,12 @@ var opts = {
    },
    def2: {
       default: "val1"
+   },
+   "2d": {
+      flag: true
+   },
+   "3d": {
+      abbr: "3"
    }
 }
 
@@ -80,8 +86,12 @@ exports.testDash = function(test) {
 };
 
 exports.testNumbers = function(test) {
-  var options = parser.parseArgs(['sum', '-1', '2.5', '-3.5', '4']);
+  var options = parser.parseArgs(['sum', '-1', '2.5', '-3.5', '4', '--2d', '-3', 'test']);
 
   test.deepEqual(options.list3, ['-1', '2.5', '-3.5', '4']);
+  test.strictEqual(options['2d'], true);
+  test.strictEqual(options['3d'], "test")
   test.done();
 };
+
+

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/nomnom/num-vals-fix.diff
locomotivecms-3.4.0 app/javascript/node_modules/nomnom/num-vals-fix.diff
dragonfly_puppeteer-0.1.0 node_modules/nomnom/num-vals-fix.diff
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/nomnom/num-vals-fix.diff
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/nomnom/num-vals-fix.diff
spider-src-0.1.7 lib/spider-src/support/spider/node_modules/nomnom/num-vals-fix.diff
spider-src-0.1.6 lib/spider-src/support/spider/node_modules/spider-script/node_modules/nomnom/num-vals-fix.diff