]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blob - example/iot-gateway/node_modules/minimist/test/kv_short.js
Initial commit
[apps/tidep0084.git] / example / iot-gateway / node_modules / minimist / test / kv_short.js
1 var parse = require('../');
2 var test = require('tape');
4 test('short -k=v' , function (t) {
5     t.plan(1);
6     
7     var argv = parse([ '-b=123' ]);
8     t.deepEqual(argv, { b: 123, _: [] });
9 });
11 test('multi short -k=v' , function (t) {
12     t.plan(1);
13     
14     var argv = parse([ '-a=whatever', '-b=robots' ]);
15     t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] });
16 });