Browse Source

Include linting of `test/*.js` in `npm run test-lint` script

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 https://github.com/janl/mustache.js/pull/777
pull/779/head
Phillip Johnsen 5 years ago
parent
commit
af216b0ce7
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      package.json
  2. +1
    -0
      test/render-test-browser-tmpl.mustache

+ 1
- 1
package.json View File

@@ -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",


+ 1
- 0
test/render-test-browser-tmpl.mustache View File

@@ -1,3 +1,4 @@
/* eslint-disable */
require('./helper');

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


Loading…
Cancel
Save