forked from enviPath/enviPy
Current Dev State
This commit is contained in:
24
static/js/ketcher2/node_modules/subarg/test/recursive.js
generated
vendored
Normal file
24
static/js/ketcher2/node_modules/subarg/test/recursive.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
var subarg = require('../');
|
||||
var test = require('tape');
|
||||
|
||||
test('recursive', function (t) {
|
||||
t.plan(1);
|
||||
|
||||
t.deepEqual(
|
||||
subarg('-a [ -b [ -c [ -d 5 ] ] ] -e 3'.split(/\s+/)),
|
||||
{
|
||||
_: [],
|
||||
a: {
|
||||
_: [],
|
||||
b: {
|
||||
_: [],
|
||||
c: {
|
||||
_: [],
|
||||
d: 5
|
||||
}
|
||||
}
|
||||
},
|
||||
e: 3
|
||||
}
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user