Skip to content

Commit

Permalink
Merge 6b2b4c4 into d73cfbb
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] committed Aug 20, 2019
2 parents d73cfbb + 6b2b4c4 commit 2f1ab07
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"coveralls": "^3.0.5",
"del": "^5.0.0",
"import-fresh": "^3.1.0",
"standard": "^13.1.0",
"standard": "^14.0.0",
"tap": "^14.4.3"
}
}
2 changes: 1 addition & 1 deletion test/lib/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ tap.test('utils > stringToMultiPositional', t => {
})

tap.test('utils > stringToArgs', t => {
t.same(utils.stringToArgs(`-k -v 'won\\'t keep' one "two three" "x`), ['-k', '-v', 'won\'t keep', 'one', 'two three', 'x'])
t.same(utils.stringToArgs('-k -v \'won\\\'t keep\' one "two three" "x'), ['-k', '-v', 'won\'t keep', 'one', 'two three', 'x'])
t.end()
})

Expand Down
56 changes: 28 additions & 28 deletions test/types/test-positional.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,14 @@ tap.test('positional > params as object 1/3', t => {
t.equal(typeObjects[parent][1].helpFlags, '[two]')
// assert that the call to positional() didn't modify the objects given
t.equal(Object.keys(params).length, 2)
t.equal(Object.keys(params['one']).length, 3)
t.equal(params['one'].desc, 'The description for the required first arg')
t.equal(params['one'].group, 'First argument:')
t.equal(params['one'].hints, '[first]')
t.equal(Object.keys(params['two']).length, 3)
t.equal(params['two'].desc, 'The description for the optional second arg')
t.equal(params['two'].group, 'Second argument:')
t.equal(params['two'].hints, '[second]')
t.equal(Object.keys(params.one).length, 3)
t.equal(params.one.desc, 'The description for the required first arg')
t.equal(params.one.group, 'First argument:')
t.equal(params.one.hints, '[first]')
t.equal(Object.keys(params.two).length, 3)
t.equal(params.two.desc, 'The description for the optional second arg')
t.equal(params.two.group, 'Second argument:')
t.equal(params.two.hints, '[second]')
t.end()
})

Expand All @@ -374,16 +374,16 @@ tap.test('positional > params as object 2/3', t => {
t.equal(typeObjects[parent][1].helpFlags, '[two]')
// assert that the call to positional() didn't modify the objects given
t.equal(Object.keys(params).length, 2)
t.equal(Object.keys(params['one']).length, 4)
t.equal(params['one'].desc, 'The description for the required first arg')
t.equal(params['one'].group, 'First argument:')
t.equal(params['one'].hints, '[first]')
t.equal(params['one'].flags, '<one>')
t.equal(Object.keys(params['two']).length, 4)
t.equal(params['two'].desc, 'The description for the optional second arg')
t.equal(params['two'].group, 'Second argument:')
t.equal(params['two'].hints, '[second]')
t.equal(params['two'].flags, '[two]')
t.equal(Object.keys(params.one).length, 4)
t.equal(params.one.desc, 'The description for the required first arg')
t.equal(params.one.group, 'First argument:')
t.equal(params.one.hints, '[first]')
t.equal(params.one.flags, '<one>')
t.equal(Object.keys(params.two).length, 4)
t.equal(params.two.desc, 'The description for the optional second arg')
t.equal(params.two.group, 'Second argument:')
t.equal(params.two.hints, '[second]')
t.equal(params.two.flags, '[two]')
t.end()
})

Expand All @@ -403,16 +403,16 @@ tap.test('positional > params as object 3/3', t => {
t.equal(typeObjects[parent][1].helpFlags, '[two]')
// assert that the call to positional() didn't modify the objects given
t.equal(Object.keys(params).length, 2)
t.equal(Object.keys(params['one']).length, 4)
t.equal(params['one'].desc, 'The description for the required first arg')
t.equal(params['one'].group, 'First argument:')
t.equal(params['one'].hints, '[first]')
t.equal(params['one'].flags, '<one>')
t.equal(Object.keys(params['two']).length, 4)
t.equal(params['two'].desc, 'The description for the optional second arg')
t.equal(params['two'].group, 'Second argument:')
t.equal(params['two'].hints, '[second]')
t.equal(params['two'].flags, '[two]')
t.equal(Object.keys(params.one).length, 4)
t.equal(params.one.desc, 'The description for the required first arg')
t.equal(params.one.group, 'First argument:')
t.equal(params.one.hints, '[first]')
t.equal(params.one.flags, '<one>')
t.equal(Object.keys(params.two).length, 4)
t.equal(params.two.desc, 'The description for the optional second arg')
t.equal(params.two.group, 'Second argument:')
t.equal(params.two.hints, '[second]')
t.equal(params.two.flags, '[two]')
t.end()
})

Expand Down

0 comments on commit 2f1ab07

Please sign in to comment.