aboutsummaryrefslogtreecommitdiff
path: root/node_modules/nomnom/num-vals-fix.diff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/nomnom/num-vals-fix.diff
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/nomnom/num-vals-fix.diff')
-rw-r--r--node_modules/nomnom/num-vals-fix.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/nomnom/num-vals-fix.diff b/node_modules/nomnom/num-vals-fix.diff
new file mode 100644
index 000000000..3c4f16791
--- /dev/null
+++ b/node_modules/nomnom/num-vals-fix.diff
@@ -0,0 +1,31 @@
+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();
+ };
++
++