Permalink
Browse files

Use var

  • Loading branch information...
1 parent 92a84fa commit d7a75febd48cac4495adf443cb857c8b4aea4660 @BridgeAR BridgeAR committed with Oct 31, 2016
Showing with 3 additions and 3 deletions.
  1. +1 −1 tools/job-runner/job-runner.js
  2. +2 −2 tools/mocha_runner.js
@@ -142,7 +142,7 @@ var jobRunner = (function() {
resolve = arguments[0];
reject = arguments[1];
});
- var task = {
+ task = {
isolated: isolated,
task: {
code: task + "",
@@ -6,7 +6,7 @@ module.exports = function mochaRun(progress) {
function checkTimers() {
var keys = Object.keys(timers);
for (var i = 0; i < keys.length; ++i) {
- key = keys[i];
+ var key = keys[i];
var timer = timers[key];
if (!timer) continue;
if (currentTime >= (timer.started + timer.time)) {
@@ -127,7 +127,7 @@ module.exports = function mochaRun(progress) {
error = failures[0].error;
}
else {
- message = "\u001b[31mSome tests failed: \u001b[m\n"
+ var message = "\u001b[31mSome tests failed: \u001b[m\n"
failures.forEach(function(failResult) {
message += " " + failResult.name + " " + failAdvice(failResult.name) + "\n";
});

0 comments on commit d7a75fe

Please sign in to comment.