Skip to content

Commit

Permalink
feat(deps): yargs-parser with support for collect-unknown-options (#1421
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bcoe committed Sep 6, 2019
1 parent d217764 commit d388a7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"string-width": "^3.0.0",
"which-module": "^2.0.0",
"y18n": "^4.0.0",
"yargs-parser": "^13.1.1"
"yargs-parser": "^14.0.0"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
6 changes: 3 additions & 3 deletions test/yargs.js
Expand Up @@ -1375,7 +1375,7 @@ describe('yargs dsl tests', () => {
argv.z.should.equal(15)
})

it('deep merge objects when extending when configured', () => {
it('deep merges configs when extending when deep-merge-config=true', () => {
const argv = yargs()
.parserConfiguration({ 'deep-merge-config': true })
.config({
Expand All @@ -1395,14 +1395,14 @@ describe('yargs dsl tests', () => {
argv.a.b.should.equal(11)
argv.a.c.should.equal(12)
argv.a.d.should.deep.equal([5, 2])
argv.a.e.should.equal(1)
argv.a.e.should.eql([1])
argv.a.f.should.equal('no')
argv.a.g.h.should.equal(122)
argv.a.i.should.deep.equal([1, 2])
argv.test.yes.should.equal(1)
})

it('do not merge objects by default when extending', () => {
it('does not deep merge objects by default', () => {
const argv = yargs()
.config({
extends: './test/fixtures/extends/config_deep.json',
Expand Down

0 comments on commit d388a7c

Please sign in to comment.