tests/test-check-jshint.t
author Matt Harbison <matt_harbison@yahoo.com>
Tue, 14 Nov 2017 22:35:42 -0500
changeset 35139 a2e927ded455
parent 35043 5d4369079c86
child 35605 45a816361926
permissions -rw-r--r--
hghave: add a check for lfs-test-server This is consistent with how the other tests require a feature.

#require test-repo jshint hg10

  $ . "$TESTDIR/helpers-testrepo.sh"

run jshint on all tracked files ending in .js except vendored dependencies

  $ cd "`dirname "$TESTDIR"`"

  $ testrepohg locate 'set:**.js' \
  > -X mercurial/templates/static/excanvas.js \
  > 2>/dev/null \
  > | xargs jshint