web3.js/test/shh_methods.js
2017-03-10 11:44:00 +01:00

20 lines
616 B
JavaScript

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');
u.propertyExists(shh, 'net');
u.methodExists(shh.net, 'getId');
u.methodExists(shh.net, 'isListening');
u.methodExists(shh.net, 'getPeerCount');
});
});