diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-15 18:38:21 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-15 18:38:21 +0800 |
commit | bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84 (patch) | |
tree | a62c488e7c86cd92b49cc30a840f1faf05a1fb44 /test/eth.methods.js | |
parent | 472ad43211e120bdbf1c16a8a49b297164cc4b13 (diff) | |
download | dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.gz dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.bz2 dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.lz dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.xz dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.tar.zst dexon-bacc5aa6d3dcaf464e19448341dcc8dfc17bcd84.zip |
methodExists and propertyExists are now separated tests
Diffstat (limited to 'test/eth.methods.js')
-rw-r--r-- | test/eth.methods.js | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/test/eth.methods.js b/test/eth.methods.js index 7190b27d2..892db0d8b 100644 --- a/test/eth.methods.js +++ b/test/eth.methods.js @@ -7,35 +7,31 @@ web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); describe('web3', function() { describe('eth', function() { - it('should have all methods implemented', function() { - u.methodExists(web3.eth, 'balanceAt'); - u.methodExists(web3.eth, 'stateAt'); - u.methodExists(web3.eth, 'storageAt'); - u.methodExists(web3.eth, 'countAt'); - u.methodExists(web3.eth, 'codeAt'); - u.methodExists(web3.eth, 'transact'); - u.methodExists(web3.eth, 'call'); - u.methodExists(web3.eth, 'block'); - u.methodExists(web3.eth, 'transaction'); - u.methodExists(web3.eth, 'uncle'); - u.methodExists(web3.eth, 'compilers'); - u.methodExists(web3.eth, 'lll'); - u.methodExists(web3.eth, 'solidity'); - u.methodExists(web3.eth, 'serpent'); - u.methodExists(web3.eth, 'logs'); - }); + u.methodExists(web3.eth, 'balanceAt'); + u.methodExists(web3.eth, 'stateAt'); + u.methodExists(web3.eth, 'storageAt'); + u.methodExists(web3.eth, 'countAt'); + u.methodExists(web3.eth, 'codeAt'); + u.methodExists(web3.eth, 'transact'); + u.methodExists(web3.eth, 'call'); + u.methodExists(web3.eth, 'block'); + u.methodExists(web3.eth, 'transaction'); + u.methodExists(web3.eth, 'uncle'); + u.methodExists(web3.eth, 'compilers'); + u.methodExists(web3.eth, 'lll'); + u.methodExists(web3.eth, 'solidity'); + u.methodExists(web3.eth, 'serpent'); + u.methodExists(web3.eth, 'logs'); - it('should have all properties implemented', function () { - u.propertyExists(web3.eth, 'coinbase'); - u.propertyExists(web3.eth, 'listening'); - u.propertyExists(web3.eth, 'mining'); - u.propertyExists(web3.eth, 'gasPrice'); - u.propertyExists(web3.eth, 'account'); - u.propertyExists(web3.eth, 'accounts'); - u.propertyExists(web3.eth, 'peerCount'); - u.propertyExists(web3.eth, 'defaultBlock'); - u.propertyExists(web3.eth, 'number'); - }); + u.propertyExists(web3.eth, 'coinbase'); + u.propertyExists(web3.eth, 'listening'); + u.propertyExists(web3.eth, 'mining'); + u.propertyExists(web3.eth, 'gasPrice'); + u.propertyExists(web3.eth, 'account'); + u.propertyExists(web3.eth, 'accounts'); + u.propertyExists(web3.eth, 'peerCount'); + u.propertyExists(web3.eth, 'defaultBlock'); + u.propertyExists(web3.eth, 'number'); }); }); |