diff --git a/.travis.yml b/.travis.yml index 558fd15..6dcfc17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,17 @@ language: node_js node_js: + - "0.12" - "0.11" - "0.10" before_script: - npm install - npm install jshint + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start script: - "jshint *.js lib" after_script: - npm run-script build + - npm run-script karma - npm run-script test-coveralls diff --git a/package.json b/package.json index 1449e35..7596280 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "lint": "gulp lint", "test": "mocha", "test-coveralls": "istanbul cover _mocha -- -R spec && cat coverage/lcov.info | coveralls --verbose", - "karma": "./node_modules/karma/bin/karma start --singleRun=true --browsers=\"Chrome,Firefox\"" + "karma": "./node_modules/karma/bin/karma start --singleRun=true --browsers=\"Firefox\"" }, "repository": { "type": "git", diff --git a/test/eth.methods.js b/test/eth.methods.js index 9ea0ad5..87b828d 100644 --- a/test/eth.methods.js +++ b/test/eth.methods.js @@ -31,6 +31,27 @@ describe('web3', function() { u.propertyExists(web3.eth, 'defaultBlock'); u.propertyExists(web3.eth, 'number'); }); + + // Fail at the moment + // describe('eth', function(){ + // it('should be a positive balance', function() { + // // when + // var testAddress = '0x50f4ed0e83f9da907017bcfb444e3e25407f59bb'; + // var balance = web3.eth.balanceAt(testAddress); + // // then + // assert(balance > 0, 'Balance is ' + balance); + // }); + + // it('should return a block', function() { + // // when + // var block = web3.eth.block(0); + + // // then + // assert.notEqual(block, null); + // assert.equal(block.number, 0); + // assert(web3.toDecimal(block.difficulty) > 0); + // }); + // }); });