Skip to content

Commit 083187a

Browse files
committedDec 21, 2018
ci: more nodejs versions
1 parent 67499ff commit 083187a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed
 

‎.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ language: node_js
33
node_js:
44
- "4"
55
- "6"
6-
- "7"
6+
- "8"
7+
- "10"
8+
- "11"
79
script: npm run travis
810

911
after_success: cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose && rm -rf ./coverage

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"json5": "^0.5.0"
1010
},
1111
"scripts": {
12-
"test": "mocha",
13-
"posttest": "npm run lint",
1412
"lint": "eslint lib test",
13+
"pretest": "npm run lint",
14+
"test": "mocha",
1515
"travis": "npm run cover -- --report lcovonly",
1616
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",
1717
"release": "npm test && standard-version"

‎test/interpolateName.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ describe("interpolateName()", () => {
4848
assert.throws(
4949
() => {
5050
const interpolatedName = loaderUtils.interpolateName(
51-
{ }, "[" + hashName + ":hash:base64:10]", {content:"a"}
51+
{ }, "[" + hashName + ":hash:base64:10]", { content: "a" }
5252
);
5353
// if for any reason the system we're running on has a hash
5454
// algorithm matching any of our bogus names, at least make sure
5555
// the output is not the unmodified name:
56-
assert(interpolatedName[0] !== '[');
56+
assert(interpolatedName[0] !== "[");
5757
},
5858
/digest method not supported/i
5959
);

‎test/parseQuery.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe("parseQuery()", () => {
7575
it("should throw an error", () => {
7676
assert.throws(
7777
() => loaderUtils.parseQuery("a"),
78-
"A valid query string passed to parseQuery should begin with '?'"
78+
/A valid query string passed to parseQuery should begin with '\?'/
7979
);
8080
});
8181
});

0 commit comments

Comments
 (0)
Please sign in to comment.