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

Update test for eslint 3.8 #412

Merged
merged 2 commits into from
Oct 15, 2016
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
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