comply with linter

pull/7/head
Iuri Matias 7 years ago
parent 11ab327882
commit 0971b1018a
  1. 12
      index.js
  2. 2
      src/testRunner.js

@ -66,21 +66,21 @@ var runTestFiles = function (filepath, isDirectory, web3) {
}
resultsCallback(null, result, cb)
})
}, function(err, _results) {
}, function (err, _results) {
if (err) {
return next(err)
}
console.log("\n")
console.log('\n')
if (totalPassing > 0) {
console.log((" " + totalPassing + ' passing ').green + ('(' + totalTime + 's)').grey)
console.log((' ' + totalPassing + ' passing ').green + ('(' + totalTime + 's)').grey)
}
if (totalFailing > 0) {
console.log((" " + totalFailing + ' failing').red)
console.log((' ' + totalFailing + ' failing').red)
}
console.log("")
console.log('')
next();
next()
})
}
], function () {

@ -32,7 +32,7 @@ function runTest (testName, testObject, testCallback, resultsCallback) {
if (result) {
testCallback({type: 'testPass', value: changeCase.sentenceCase(func.name), time: time})
passingNum += 1
timePassed += time;
timePassed += time
} else {
testCallback({type: 'testFailure', value: changeCase.sentenceCase(func.name), time: time})
failureNum += 1

Loading…
Cancel
Save