2017-01-26 10:24:14 +01:00
|
|
|
var u = require('./helpers/test.utils.js');
|
|
|
|
var Shh = require('../packages/web3-shh');
|
|
|
|
var shh = new Shh();
|
|
|
|
|
|
|
|
describe('shh', function() {
|
|
|
|
describe('methods', function() {
|
|
|
|
u.methodExists(shh, 'post');
|
|
|
|
u.methodExists(shh, 'newIdentity');
|
|
|
|
u.methodExists(shh, 'hasIdentity');
|
|
|
|
u.methodExists(shh, 'newGroup');
|
|
|
|
u.methodExists(shh, 'addToGroup');
|
|
|
|
u.methodExists(shh, 'subscribe');
|
2017-03-10 11:44:00 +01:00
|
|
|
u.propertyExists(shh, 'net');
|
|
|
|
u.methodExists(shh.net, 'getId');
|
|
|
|
u.methodExists(shh.net, 'isListening');
|
|
|
|
u.methodExists(shh.net, 'getPeerCount');
|
2017-01-26 10:24:14 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|