Commit 0971b101 authored by Iuri Matias's avatar Iuri Matias

comply with linter

parent 11ab3278
...@@ -66,21 +66,21 @@ var runTestFiles = function (filepath, isDirectory, web3) { ...@@ -66,21 +66,21 @@ var runTestFiles = function (filepath, isDirectory, web3) {
} }
resultsCallback(null, result, cb) resultsCallback(null, result, cb)
}) })
}, function(err, _results) { }, function (err, _results) {
if (err) { if (err) {
return next(err) return next(err)
} }
console.log("\n") console.log('\n')
if (totalPassing > 0) { if (totalPassing > 0) {
console.log((" " + totalPassing + ' passing ').green + ('(' + totalTime + 's)').grey) console.log((' ' + totalPassing + ' passing ').green + ('(' + totalTime + 's)').grey)
} }
if (totalFailing > 0) { if (totalFailing > 0) {
console.log((" " + totalFailing + ' failing').red) console.log((' ' + totalFailing + ' failing').red)
} }
console.log("") console.log('')
next(); next()
}) })
} }
], function () { ], function () {
......
...@@ -32,7 +32,7 @@ function runTest (testName, testObject, testCallback, resultsCallback) { ...@@ -32,7 +32,7 @@ function runTest (testName, testObject, testCallback, resultsCallback) {
if (result) { if (result) {
testCallback({type: 'testPass', value: changeCase.sentenceCase(func.name), time: time}) testCallback({type: 'testPass', value: changeCase.sentenceCase(func.name), time: time})
passingNum += 1 passingNum += 1
timePassed += time; timePassed += time
} else { } else {
testCallback({type: 'testFailure', value: changeCase.sentenceCase(func.name), time: time}) testCallback({type: 'testFailure', value: changeCase.sentenceCase(func.name), time: time})
failureNum += 1 failureNum += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment