comply with linter

pull/7/head
Iuri Matias 7 years ago
parent 89208da930
commit e7aec5def7
  1. 6
      index.js
  2. 2
      run.js
  3. 6
      src/testRunner.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()

@ -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)

@ -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})

Loading…
Cancel
Save