diff options
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/minimist/test/stop_early.js')
-rw-r--r-- | bin/wiki/ImportarDesdeURL/node_modules/minimist/test/stop_early.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/minimist/test/stop_early.js b/bin/wiki/ImportarDesdeURL/node_modules/minimist/test/stop_early.js new file mode 100644 index 00000000..bdf9fbcb --- /dev/null +++ b/bin/wiki/ImportarDesdeURL/node_modules/minimist/test/stop_early.js @@ -0,0 +1,15 @@ +var parse = require('../'); +var test = require('tape'); + +test('stops parsing on the first non-option when stopEarly is set', function (t) { + var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], { + stopEarly: true + }); + + t.deepEqual(argv, { + aaa: 'bbb', + _: ['ccc', '--ddd'] + }); + + t.end(); +}); |