source:
trip-planner-front/node_modules/minimist/test/parse_modified.js@
eed0bf8
Last change on this file since eed0bf8 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 238 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | var parse = require('../'); |
2 | var test = require('tape'); | |
3 | ||
4 | test('parse with modifier functions' , function (t) { | |
5 | t.plan(1); | |
6 | ||
7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); | |
8 | t.deepEqual(argv, { b: true, _: [123] }); | |
9 | }); |
Note:
See TracBrowser
for help on using the repository browser.