comply with linter; ignore tests dir

pull/7/head
Iuri Matias 7 years ago
parent 9a3df247f5
commit 14dd2a8d66
  1. 5
      package.json
  2. 6
      src/deployer.js
  3. 3
      src/testRunner.js

@ -28,6 +28,11 @@
"bugs": { "bugs": {
"url": "https://github.com/ethereum/remix-tests/issues" "url": "https://github.com/ethereum/remix-tests/issues"
}, },
"standard": {
"ignore": [
"tests/"
]
},
"homepage": "https://github.com/ethereum/remix-tests#readme", "homepage": "https://github.com/ethereum/remix-tests#readme",
"dependencies": { "dependencies": {
"change-case": "^3.0.1", "change-case": "^3.0.1",

@ -3,11 +3,13 @@ var async = require('async')
// TODO: replace this with remix's own deployer code // TODO: replace this with remix's own deployer code
function deployAll (compileResult, web3, callback) { function deployAll (compileResult, web3, callback) {
let compiledObject = {}, contracts = {}, accounts let compiledObject = {}
let contracts = {}
let accounts = []
async.waterfall([ async.waterfall([
function getAccountList (next) { function getAccountList (next) {
web3.eth.getAccounts((err, _accounts) => { web3.eth.getAccounts((_err, _accounts) => {
accounts = _accounts accounts = _accounts
next() next()
}) })

@ -18,7 +18,8 @@ function runTest (testName, testObject, testCallback, resultsCallback) {
runList.push({name: func.name, type: 'test', constant: func.constant}) runList.push({name: func.name, type: 'test', constant: func.constant})
} }
let passingNum = 0, failureNum = 0 let passingNum = 0
let failureNum = 0
testCallback({type: 'contract', value: testName}) testCallback({type: 'contract', value: testName})
async.eachOfLimit(runList, 1, function (func, index, next) { async.eachOfLimit(runList, 1, function (func, index, next) {

Loading…
Cancel
Save