diff --git a/index.js b/index.js index 494566a7cf..51bcb0808e 100644 --- a/index.js +++ b/index.js @@ -83,10 +83,10 @@ var runTestFiles = function (filepath, isDirectory, web3) { console.log('') errors.forEach((error, index) => { - console.log(" " + (index+1) + ") " + error.context + " " + error.value) + console.log(' ' + (index + 1) + ') ' + error.context + ' ' + error.value) console.log('') - console.log(("\t error: " + error.errMsg).red); - }); + console.log(('\t error: ' + error.errMsg).red) + }) console.log('') next() diff --git a/run.js b/run.js index 5751bbd656..11cee33472 100644 --- a/run.js +++ b/run.js @@ -6,7 +6,7 @@ const fs = require('fs') commander.action(function (filename) { let web3 = new Web3() web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')) - //web3.setProvider(new web3.providers.WebsocketProvider('http://localhost:8546')) + // web3.setProvider(new web3.providers.WebsocketProvider('http://localhost:8546')) let isDirectory = fs.lstatSync(filename).isDirectory() RemixTests.runTestFiles(filename, isDirectory, web3) diff --git a/src/testRunner.js b/src/testRunner.js index e15010e206..9265fe325b 100644 --- a/src/testRunner.js +++ b/src/testRunner.js @@ -54,7 +54,7 @@ function runTest (web3, testName, testObject, testCallback, resultsCallback) { next() }) } else { - method.send().on('receipt', function(receipt) { + method.send().on('receipt', function (receipt) { let time = Math.ceil((Date.now() - startTime) / 1000.0) if (func.type === 'test') { let topic = web3.utils.sha3('AssertionEvent(bool,string)') @@ -68,10 +68,10 @@ function runTest (web3, testName, testObject, testCallback, resultsCallback) { } if (matchingEvents.length === 0) { - return next(); + return next() } - let result = matchingEvents[0]; + let result = matchingEvents[0] if (result[0]) { testCallback({type: 'testPass', value: changeCase.sentenceCase(func.name), time: time, context: testName})