|
|
@ -7,7 +7,6 @@ web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); |
|
|
|
|
|
|
|
|
|
|
|
describe('web3', function() { |
|
|
|
describe('web3', function() { |
|
|
|
describe('eth', function() { |
|
|
|
describe('eth', function() { |
|
|
|
it('should have all methods implemented', function() { |
|
|
|
|
|
|
|
u.methodExists(web3.eth, 'balanceAt'); |
|
|
|
u.methodExists(web3.eth, 'balanceAt'); |
|
|
|
u.methodExists(web3.eth, 'stateAt'); |
|
|
|
u.methodExists(web3.eth, 'stateAt'); |
|
|
|
u.methodExists(web3.eth, 'storageAt'); |
|
|
|
u.methodExists(web3.eth, 'storageAt'); |
|
|
@ -23,9 +22,7 @@ describe('web3', function() { |
|
|
|
u.methodExists(web3.eth, 'solidity'); |
|
|
|
u.methodExists(web3.eth, 'solidity'); |
|
|
|
u.methodExists(web3.eth, 'serpent'); |
|
|
|
u.methodExists(web3.eth, 'serpent'); |
|
|
|
u.methodExists(web3.eth, 'logs'); |
|
|
|
u.methodExists(web3.eth, 'logs'); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('should have all properties implemented', function () { |
|
|
|
|
|
|
|
u.propertyExists(web3.eth, 'coinbase'); |
|
|
|
u.propertyExists(web3.eth, 'coinbase'); |
|
|
|
u.propertyExists(web3.eth, 'listening'); |
|
|
|
u.propertyExists(web3.eth, 'listening'); |
|
|
|
u.propertyExists(web3.eth, 'mining'); |
|
|
|
u.propertyExists(web3.eth, 'mining'); |
|
|
@ -36,7 +33,6 @@ describe('web3', function() { |
|
|
|
u.propertyExists(web3.eth, 'defaultBlock'); |
|
|
|
u.propertyExists(web3.eth, 'defaultBlock'); |
|
|
|
u.propertyExists(web3.eth, 'number'); |
|
|
|
u.propertyExists(web3.eth, 'number'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|