mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
20 lines
616 B
JavaScript
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');
|
|
});
|
|
});
|
|
|