Skip to content

Commit

Permalink
chore(deps): upgraded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alecxe authored Jul 1, 2019
2 parents daac6ce + 61bbd57 commit 5baa68a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ bin-release/
# Other files and folders
.settings/

/.nyc_output
/node_modules
coverage/
build/
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ notifications:
urls:
- https://webhooks.gitter.im/e/adff3996681bbaef4a61
node_js:
- '6'
- '7'
- '8'
- '9'
- '10'
- '12'
- 'node'
before_install:
- npm i -g npm@^2.0.0
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/correct-chaining.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ module.exports = {

function createCorrectChainingAutoFixFunction (node) {
var property = node.property
var startRange = property.range[0] - 1 // -1 to get the "." as well
var startRange = property.range[0] - 1 // -1 to get the "." as well
var endRange = property.range[1]

return function (fixer) {
// remove .element from .element.all incorrect chain
if (property && property.name === 'element') { // self-check
if (property && property.name === 'element') { // self-check
return fixer.removeRange([startRange, endRange])
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/use-first-last.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
function createFirstLastAutoFixFunction (property, argument, argumentValue) {
var functionToUse = valueFunction[argumentValue]
var rangeStart = property.range[0]
var rangeEnd = argument.range[1] + 1 // 1 added for parenthesis
var rangeEnd = argument.range[1] + 1 // 1 added for parenthesis

return function (fixer) {
// replace get(0) with first(), get(-1) with last()
Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
"scripts": {
"pretest": "standard && eslint .",
"test": "mocha",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report html -- -R spec",
"coverage": "nyc --reporter=html ./node_modules/mocha/bin/_mocha -R spec",
"watch": "mocha --watch",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
"semantic-release": "semantic-release",
"coveralls": "nyc --reporter=text-lcov ./node_modules/mocha/bin/_mocha -R spec | coveralls && rm -rf ./coverage"
},
"engines": {
"node": ">=8"
},
"standard": {
"globals": [
Expand Down Expand Up @@ -47,25 +50,23 @@
"eslint": ">=2.0.0"
},
"devDependencies": {
"chai": "^3.5.0",
"commitizen": "^2.8.1",
"coveralls": "^2.11.9",
"cz-conventional-changelog": "^1.1.6",
"eslint": ">=2.0.0",
"install": "^0.8.1",
"istanbul": "^0.4.3",
"mocha": "^5.2.0",
"npm": "^3.10.5",
"semantic-release": "^4.3.5",
"standard": "^7.1.2"
"chai": "^4.2.0",
"commitizen": "^3.1.1",
"coveralls": "^3.0.4",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.16.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"semantic-release": "^15.13.18",
"standard": "^12.0.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"css-selector-parser": "^1.1.0",
"multimatch": "^2.1.0"
"css-selector-parser": "^1.3.0",
"multimatch": "^4.0.0"
}
}
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('eslint-plugin-protractor', function () {
ruleFiles.forEach(function (file) {
var ruleName = path.basename(file, '.js')

expect(plugin).to.have.deep.property('rules.' + ruleName)
expect(plugin).to.have.nested.property('rules.' + ruleName)
.that.equals(require(rulesDir + ruleName))
})
})
Expand All @@ -32,7 +32,7 @@ describe('eslint-plugin-protractor', function () {
ruleFiles.forEach(function (file) {
var ruleName = path.basename(file, '.js')

expect(plugin).to.have.deep.property('configs.recommended.rules')
expect(plugin).to.have.nested.property('configs.recommended.rules')
.that.has.property('protractor/' + ruleName)
.that.is.oneOf([0, 1, 2, 'off', 'warn', 'error'])
})
Expand Down

0 comments on commit 5baa68a

Please sign in to comment.