aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/test/dash.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/test/dash.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/test/dash.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/test/dash.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/test/dash.js
deleted file mode 100644
index af8ed6fc..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/test/dash.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var optimist = require('../index');
-var test = require('tap').test;
-
-test('-', function (t) {
- t.plan(5);
- t.deepEqual(
- fix(optimist.parse([ '-n', '-' ])),
- { n: '-', _: [] }
- );
- t.deepEqual(
- fix(optimist.parse([ '-' ])),
- { _: [ '-' ] }
- );
- t.deepEqual(
- fix(optimist.parse([ '-f-' ])),
- { f: '-', _: [] }
- );
- t.deepEqual(
- fix(optimist([ '-b', '-' ]).boolean('b').argv),
- { b: true, _: [ '-' ] }
- );
- t.deepEqual(
- fix(optimist([ '-s', '-' ]).string('s').argv),
- { s: '-', _: [] }
- );
-});
-
-function fix (obj) {
- delete obj.$0;
- return obj;
-}