Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Update test for eslint 3.8 (#412)
Browse files Browse the repository at this point in the history
* Update test for eslint 3.8

also ignore yarn lock

* Run lint only on latest version
  • Loading branch information
danez authored Oct 15, 2016
1 parent 61b4b05 commit 11ac658
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
npm-debug.log
yarn.lock
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
git:
depth: 1
sudo: false
language: node_js
node_js:
- "4"
- "5"
- "6"

matrix:
fast_finish: true
include:
- node_js: "4"
- node_js: "5"
- node_js: "6"
- node_js: "node"
env: LINT=true

script: npm run test-ci
script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -z "${LINT-}" ]; then npm test ; fi'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"scripts": {
"bootstrap": "git submodule update --init && cd eslint && npm install",
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js",
"test": "mocha",
"test-ci": "npm test && npm run lint",
"test": "npm run lint && npm run test-only",
"test-only": "mocha",
"lint": "eslint index.js babylon-to-espree test",
"fix": "eslint index.js babylon-to-espree test --fix",
"preversion": "npm test",
Expand Down
2 changes: 1 addition & 1 deletion test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ describe("verify", function () {
verifyAndAssertMessages(
"const {Bacona} = require('baconjs')",
{ "no-undef": 1, "no-unused-vars": 1 },
[ "1:8 'Bacona' is defined but never used. no-unused-vars" ]
[ "1:8 'Bacona' is assigned a value but never used. no-unused-vars" ]
);
});

Expand Down

0 comments on commit 11ac658

Please sign in to comment.