Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
376 bytes
|
Line | |
---|
1 | var parse = require('../');
|
---|
2 | var test = require('tape');
|
---|
3 |
|
---|
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 | });
|
---|
10 |
|
---|
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 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.