Skip to content

Commit

Permalink
ci: more nodejs versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 21, 2018
1 parent 67499ff commit 083187a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ language: node_js
node_js:
- "4"
- "6"
- "7"
- "8"
- "10"
- "11"
script: npm run travis

after_success: cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose && rm -rf ./coverage
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"json5": "^0.5.0"
},
"scripts": {
"test": "mocha",
"posttest": "npm run lint",
"lint": "eslint lib test",
"pretest": "npm run lint",
"test": "mocha",
"travis": "npm run cover -- --report lcovonly",
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",
"release": "npm test && standard-version"
Expand Down
4 changes: 2 additions & 2 deletions test/interpolateName.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ describe("interpolateName()", () => {
assert.throws(
() => {
const interpolatedName = loaderUtils.interpolateName(
{ }, "[" + hashName + ":hash:base64:10]", {content:"a"}
{ }, "[" + hashName + ":hash:base64:10]", { content: "a" }
);
// if for any reason the system we're running on has a hash
// algorithm matching any of our bogus names, at least make sure
// the output is not the unmodified name:
assert(interpolatedName[0] !== '[');
assert(interpolatedName[0] !== "[");
},
/digest method not supported/i
);
Expand Down
2 changes: 1 addition & 1 deletion test/parseQuery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe("parseQuery()", () => {
it("should throw an error", () => {
assert.throws(
() => loaderUtils.parseQuery("a"),
"A valid query string passed to parseQuery should begin with '?'"
/A valid query string passed to parseQuery should begin with '\?'/
);
});
});
Expand Down

0 comments on commit 083187a

Please sign in to comment.