• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jshint / jshint / 2753 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2018 05:05PM UTC
Files 13
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jan 2018 04:55PM UTC coverage: 98.746%. Remained the same
2753.2

push

travis-ci

rwaldron
<a href="https://github.com/jshint/jshint/commit/ef27601ba">[[CHORE]] Correct bug in test harness

Today, when a test expects an error to occur on a line that is
incorrect, the harness reports the situation in those terms. For
example, for the following test:

    exports.foo = function (test) {
      TestRun(test)
        .addError(9999, 1, &quot;Expected an assignment or function call and instead saw an expression.&quot;)
        .test(&quot;0;&quot;);
      test.done();
    };

The test harness reports:

&gt;     Errors with wrong location:
&gt;       {Line 1, Char 1} Expected an assignment or function call and instead saw an expression. - Not in line(s) {Line 9999, Char 1}

The requirement for tests to specify the character column for every
error is a recent addition to the test harness [1]. It was introduced
with only partial support in the test harness. That flaw did not impact
the harness&#39;s ability to identify test failures, but it did produce
confusing output in the event of failure.

When an error was reported with a character column that differed from
what was expected, the harness would simply report that the error was
defined but not thrown and omit details about the error that was
actually produced. For example, for the following test:

    exports.foo = function (test) {
      TestRun(test)
        .addError(1, 9999, &quot;Expected an assignment or function call and instead saw an expression.&quot;)
        .test(&quot;0;&quot;);
      test.done();
    };

...the harness would report the following error:

&gt;       Errors defined, but not thrown by JSHint:
&gt;         {Line 1, Char 9999} Expected an assignment or function call and instead saw an expression.

This patch corrects the harness&#39;s behavior so it instead reports:

&gt;       Errors with wrong location:
&gt;         {Line 1, Char 1} Expected an assignment or function call and instead saw an expression. - Not in line(s) {Line 1, Char 9999}... (continued)

4015 of 4066 relevant lines covered (98.75%)

3585.16 hits per line

Source Files on job 2753.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2753
  • Travis Job 2753.2
  • ef27601b on github
  • Prev Job for on master (#2752.3)
  • Next Job for on master (#2754.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc