Merge branch 'master' into develop

This commit is contained in:
Marek Kotewicz 2015-03-07 16:48:30 +01:00
commit 75e92c8048
3 changed files with 26 additions and 1 deletions

View File

@ -1,13 +1,17 @@
language: node_js language: node_js
node_js: node_js:
- "0.12"
- "0.11" - "0.11"
- "0.10" - "0.10"
before_script: before_script:
- npm install - npm install
- npm install jshint - npm install jshint
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script: script:
- "jshint *.js lib" - "jshint *.js lib"
after_script: after_script:
- npm run-script build - npm run-script build
- npm run-script karma
- npm run-script test-coveralls - npm run-script test-coveralls

View File

@ -41,7 +41,7 @@
"lint": "gulp lint", "lint": "gulp lint",
"test": "mocha", "test": "mocha",
"test-coveralls": "istanbul cover _mocha -- -R spec && cat coverage/lcov.info | coveralls --verbose", "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": { "repository": {
"type": "git", "type": "git",

View File

@ -32,6 +32,27 @@ describe('web3', function() {
u.propertyExists(web3.eth, 'defaultBlock'); u.propertyExists(web3.eth, 'defaultBlock');
u.propertyExists(web3.eth, 'blockNumber'); u.propertyExists(web3.eth, 'blockNumber');
}); });
// 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);
// });
// });
}); });