diff options
author | Gav Wood <i@gavwood.com> | 2015-01-12 00:54:36 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-01-12 00:54:36 +0800 |
commit | ded221fba2cc21e1037a1130d9d142e657a52e89 (patch) | |
tree | 48d0c2871eafec7049d0f5c04b24db8d0f91df3f /test/shh.methods.js | |
parent | 47687cf085196e2e4fa7ec42ff426f241dae10c5 (diff) | |
download | go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.gz go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.bz2 go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.lz go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.xz go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.zst go-tangerine-ded221fba2cc21e1037a1130d9d142e657a52e89.zip |
Merge commit 'ab745d3b0eb89d67db1ed953020c665be3d072ed' into develop
Conflicts:
libjsqrc/ethereumjs/.travis.yml
libjsqrc/ethereumjs/README.md
libjsqrc/ethereumjs/dist/ethereum.js
libjsqrc/ethereumjs/dist/ethereum.js.map
libjsqrc/ethereumjs/lib/abi.js
libjsqrc/ethereumjs/package.json
Diffstat (limited to 'test/shh.methods.js')
-rw-r--r-- | test/shh.methods.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/shh.methods.js b/test/shh.methods.js new file mode 100644 index 000000000..08f573a3c --- /dev/null +++ b/test/shh.methods.js @@ -0,0 +1,19 @@ +require('es6-promise').polyfill(); + +var assert = require('assert'); +var web3 = require('../index.js'); +var u = require('./utils.js'); +web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider + +describe('web3', function() { + describe('shh', function() { + it('should have all methods implemented', function() { + u.methodExists(web3.shh, 'post'); + u.methodExists(web3.shh, 'newIdentity'); + u.methodExists(web3.shh, 'haveIdentity'); + u.methodExists(web3.shh, 'newGroup'); + u.methodExists(web3.shh, 'addToGroup'); + }); + }); +}); + |