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

Commit 11ac658

Browse files
authored
Update test for eslint 3.8 (#412)
* Update test for eslint 3.8 also ignore yarn lock * Run lint only on latest version
1 parent 61b4b05 commit 11ac658

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
npm-debug.log
3+
yarn.lock

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
git:
2-
depth: 1
31
sudo: false
42
language: node_js
3+
node_js:
4+
- "4"
5+
- "5"
6+
- "6"
7+
58
matrix:
9+
fast_finish: true
610
include:
7-
- node_js: "4"
8-
- node_js: "5"
9-
- node_js: "6"
11+
- node_js: "node"
12+
env: LINT=true
1013

11-
script: npm run test-ci
14+
script:
15+
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
16+
- 'if [ -z "${LINT-}" ]; then npm test ; fi'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"scripts": {
2121
"bootstrap": "git submodule update --init && cd eslint && npm install",
2222
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js",
23-
"test": "mocha",
24-
"test-ci": "npm test && npm run lint",
23+
"test": "npm run lint && npm run test-only",
24+
"test-only": "mocha",
2525
"lint": "eslint index.js babylon-to-espree test",
2626
"fix": "eslint index.js babylon-to-espree test --fix",
2727
"preversion": "npm test",

test/non-regression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ describe("verify", function () {
11961196
verifyAndAssertMessages(
11971197
"const {Bacona} = require('baconjs')",
11981198
{ "no-undef": 1, "no-unused-vars": 1 },
1199-
[ "1:8 'Bacona' is defined but never used. no-unused-vars" ]
1199+
[ "1:8 'Bacona' is assigned a value but never used. no-unused-vars" ]
12001200
);
12011201
});
12021202

0 commit comments

Comments
 (0)