Skip to content

Commit

Permalink
Include linting of test/*.js in npm run test-lint script
Browse files Browse the repository at this point in the history
Had obviously been forgotten, but those test files should have been part
of the ordinary lint phase.

The fact that we had forgotten to lint these files, allowed a missing
semi-colon to sneak into `./test/cli-test.js` file.

Refs #777
  • Loading branch information
phillipj committed Apr 12, 2021
1 parent edc988b commit af216b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"scripts": {
"build": "cp mustache.js mustache.mjs && rollup mustache.mjs --file mustache.js --format umd --name Mustache && uglifyjs mustache.js > mustache.min.js",
"test": "npm run test-lint && npm run test-unit",
"test-lint": "eslint mustache.js bin/mustache test/**/*.js",
"test-lint": "eslint mustache.js bin/mustache test/*.js test/**/*.js",
"test-unit": "mocha --reporter spec test/*-test.js",
"test-render": "mocha --reporter spec test/render-test",
"pre-test-browser": "node test/create-browser-suite.js",
Expand Down
1 change: 1 addition & 0 deletions test/render-test-browser-tmpl.mustache
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
require('./helper');

describe('Mustache.render', function () {
Expand Down

0 comments on commit af216b0

Please sign in to comment.