source:
frontend/node_modules/minimist/test/parse_modified.js
| Last change on this file was 9af201e, checked in by , 13 days ago | |
|---|---|
|
|
| File size: 237 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict'; |
| 2 | ||
| 3 | var parse = require('../'); | |
| 4 | var test = require('tape'); | |
| 5 | ||
| 6 | test('parse with modifier functions', function (t) { | |
| 7 | t.plan(1); | |
| 8 | ||
| 9 | var argv = parse(['-b', '123'], { boolean: 'b' }); | |
| 10 | t.deepEqual(argv, { b: true, _: [123] }); | |
| 11 | }); |
Note:
See TracBrowser
for help on using the repository browser.
