tests/test-check-jshint.t
author Manuel Jacob <me@manueljacob.de>
Tue, 14 Jul 2020 10:25:41 +0200
branchstable
changeset 45092 e699cebc3ae9
parent 35605 45a816361926
permissions -rw-r--r--
convert: use bytes for value in extra dict The keys and values of the extra dict are expected to be bytes. Before this fix, there was a crash in mercurial.changelog.encodeextra().

#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