Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #438 from ochameau/fix/undefined-properties-during…

…-test-failure

Avoid strict warnings when a test is failing. r=@gozala
  • Loading branch information...
commit 9cd5d7fdb8ac4f9b3c7eb06651f2a50733fd13d6 2 parents 01c75a6 + a4e04cf
ochameau authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  packages/api-utils/lib/unit-test.js
2  packages/api-utils/lib/unit-test.js
@@ -43,6 +43,8 @@ TestRunner.prototype = {
43 43 PAUSE_DELAY: 500,
44 44
45 45 _logTestFailed: function _logTestFailed(why) {
  46 + if (!(why in this.test.errors))
  47 + this.test.errors[why] = 0;
46 48 this.test.errors[why]++;
47 49 if (!this.testFailureLogged) {
48 50 this.console.error("TEST FAILED: " + this.test.name + " (" + why + ")");

0 comments on commit 9cd5d7f

Please sign in to comment.
Something went wrong with that request. Please try again.