Skip to content

Commit

Permalink
chore: upgrade to newest version of camelcase (#87)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: camelcase now requires Node 4+.
  • Loading branch information
bcoe committed Apr 15, 2017
1 parent d2a76f0 commit f1903aa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"coveralls": "^2.11.12",
"mocha": "^3.0.1",
"nyc": "^10.0.0",
"standard": "^8.0.0",
"standard": "^10.0.2",
"standard-version": "^4.0.0"
},
"dependencies": {
"camelcase": "^3.0.0"
"camelcase": "^4.1.0"
},
"files": [
"lib",
Expand Down
28 changes: 14 additions & 14 deletions test/yargs-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ describe('yargs-parser', function () {
boolean: ['b']
})
// Assert
result.should.have.property('b').that.is.a('boolean').and.is.true
result.should.have.property('b').that.is.a('boolean').and.is.true // eslint-disable-line
result.should.have.property('_').and.deep.equal([123])
})
})
Expand Down Expand Up @@ -1047,11 +1047,11 @@ describe('yargs-parser', function () {
}

it('should set true if --flag in arg', function () {
parser(['--flag'], opts).flag.should.be.true
parser(['--flag'], opts).flag.should.be.true // eslint-disable-line
})

it('should set false if --no-flag in arg', function () {
parser(['--no-flag'], opts).flag.should.be.false
parser(['--no-flag'], opts).flag.should.be.false // eslint-disable-line
})

it('should set ' + def + ' if no flag in arg', function () {
Expand All @@ -1070,15 +1070,15 @@ describe('yargs-parser', function () {
})

it('should set true if --flag in arg', function () {
parser(['--flag'], opts).flag.should.be.true
parser(['--flag'], opts).flag.should.be.true // eslint-disable-line
})

it('should set false if --no-flag in arg', function () {
parser(['--no-flag'], opts).flag.should.be.false
parser(['--no-flag'], opts).flag.should.be.false // eslint-disable-line
})

it('should set false if no flag in arg', function () {
parser([], opts).flag.should.be.false
parser([], opts).flag.should.be.false // eslint-disable-line
})
})

Expand Down Expand Up @@ -1135,8 +1135,8 @@ describe('yargs-parser', function () {
it('should provide options with dashes as camelCase properties', function () {
var result = parser(['--some-option'])

result.should.have.property('some-option').that.is.a('boolean').and.is.true
result.should.have.property('someOption').that.is.a('boolean').and.is.true
result.should.have.property('some-option').that.is.a('boolean').and.is.true // eslint-disable-line
result.should.have.property('someOption').that.is.a('boolean').and.is.true // eslint-disable-line
})
}

Expand All @@ -1156,8 +1156,8 @@ describe('yargs-parser', function () {
}
})

result.should.have.property('some-option').that.is.a('boolean').and.is.true
result.should.have.property('someOption').that.is.a('boolean').and.is.true
result.should.have.property('some-option').that.is.a('boolean').and.is.true // eslint-disable-line
result.should.have.property('someOption').that.is.a('boolean').and.is.true // eslint-disable-line
})

it('should provide defaults of options with dashes as camelCase properties', function () {
Expand Down Expand Up @@ -1369,13 +1369,13 @@ describe('yargs-parser', function () {
count: 'v',
default: { v: undefined }
})
expect(parsed.v).to.be.undefined
expect(parsed.v).to.be.undefined // eslint-disable-line

parsed = parser([], {
count: 'v',
default: { v: null }
})
expect(parsed.v).to.be.null
expect(parsed.v).to.be.null // eslint-disable-line

parsed = parser([], {
count: 'v',
Expand Down Expand Up @@ -1668,8 +1668,8 @@ describe('yargs-parser', function () {

result.eggs.should.equal('sam')
result.ham.should.equal('iam')
expect(result.oneFish).to.be.undefined
expect(result.redFish).to.be.undefined
expect(result.oneFish).to.be.undefined // eslint-disable-line
expect(result.redFish).to.be.undefined // eslint-disable-line
})

it('should set aliases for options defined by env var', function () {
Expand Down

0 comments on commit f1903aa

Please sign in to comment.