Skip to content

Commit f1903aa

Browse files
authored
chore: upgrade to newest version of camelcase (#87)
BREAKING CHANGE: camelcase now requires Node 4+.
1 parent d2a76f0 commit f1903aa

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"coveralls": "^2.11.12",
3131
"mocha": "^3.0.1",
3232
"nyc": "^10.0.0",
33-
"standard": "^8.0.0",
33+
"standard": "^10.0.2",
3434
"standard-version": "^4.0.0"
3535
},
3636
"dependencies": {
37-
"camelcase": "^3.0.0"
37+
"camelcase": "^4.1.0"
3838
},
3939
"files": [
4040
"lib",

test/yargs-parser.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ describe('yargs-parser', function () {
955955
boolean: ['b']
956956
})
957957
// Assert
958-
result.should.have.property('b').that.is.a('boolean').and.is.true
958+
result.should.have.property('b').that.is.a('boolean').and.is.true // eslint-disable-line
959959
result.should.have.property('_').and.deep.equal([123])
960960
})
961961
})
@@ -1047,11 +1047,11 @@ describe('yargs-parser', function () {
10471047
}
10481048

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

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

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

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

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

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

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

1138-
result.should.have.property('some-option').that.is.a('boolean').and.is.true
1139-
result.should.have.property('someOption').that.is.a('boolean').and.is.true
1138+
result.should.have.property('some-option').that.is.a('boolean').and.is.true // eslint-disable-line
1139+
result.should.have.property('someOption').that.is.a('boolean').and.is.true // eslint-disable-line
11401140
})
11411141
}
11421142

@@ -1156,8 +1156,8 @@ describe('yargs-parser', function () {
11561156
}
11571157
})
11581158

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

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

13741374
parsed = parser([], {
13751375
count: 'v',
13761376
default: { v: null }
13771377
})
1378-
expect(parsed.v).to.be.null
1378+
expect(parsed.v).to.be.null // eslint-disable-line
13791379

13801380
parsed = parser([], {
13811381
count: 'v',
@@ -1668,8 +1668,8 @@ describe('yargs-parser', function () {
16681668

16691669
result.eggs.should.equal('sam')
16701670
result.ham.should.equal('iam')
1671-
expect(result.oneFish).to.be.undefined
1672-
expect(result.redFish).to.be.undefined
1671+
expect(result.oneFish).to.be.undefined // eslint-disable-line
1672+
expect(result.redFish).to.be.undefined // eslint-disable-line
16731673
})
16741674

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

0 commit comments

Comments
 (0)