Parcourir la 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 il y a 5 ans
Parent
révision
af216b0ce7
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +1
    -1
      package.json
  2. +1
    -0
      test/render-test-browser-tmpl.mustache

+ 1
- 1
package.json Voir le fichier

@@ -37,7 +37,7 @@
"scripts": { "scripts": {
"build": "cp mustache.js mustache.mjs && rollup mustache.mjs --file mustache.js --format umd --name Mustache && uglifyjs mustache.js > mustache.min.js", "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": "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-unit": "mocha --reporter spec test/*-test.js",
"test-render": "mocha --reporter spec test/render-test", "test-render": "mocha --reporter spec test/render-test",
"pre-test-browser": "node test/create-browser-suite.js", "pre-test-browser": "node test/create-browser-suite.js",


+ 1
- 0
test/render-test-browser-tmpl.mustache Voir le fichier

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


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


Chargement…
Annuler
Enregistrer