Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #87

Merged
merged 1 commit into from
Apr 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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