source: frontend/node_modules/minimist/test/stop_early.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 312 bytes
Line 
1'use strict';
2
3var parse = require('../');
4var test = require('tape');
5
6test('stops parsing on the first non-option when stopEarly is set', function (t) {
7 var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
8 stopEarly: true,
9 });
10
11 t.deepEqual(argv, {
12 aaa: 'bbb',
13 _: ['ccc', '--ddd'],
14 });
15
16 t.end();
17});
Note: See TracBrowser for help on using the repository browser.