tests/test-check-jshint.t
author Anton Shestakov <av6@dwimlabs.net>
Sat, 06 Jun 2020 19:12:49 +0800
changeset 44978 f4361aed565d
parent 35605 45a816361926
permissions -rw-r--r--
tests: consistently use pyflakes as a Python module We check availability of pyflakes as a module, and also running it for real as a module. Only fair to test filterpyflakes.py working correctly when using pyflakes as a module too. Differential Revision: https://phab.mercurial-scm.org/D8617

#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' \
  > 2>/dev/null \
  > | xargs jshint