2015-01-11 17:16:50 +00:00
|
|
|
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() {
|
2015-01-15 16:25:50 +00:00
|
|
|
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');
|
2015-01-11 17:16:50 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|