2015-01-11 16:54:36 +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('db', function() {
|
2015-01-15 10:38:21 +00:00
|
|
|
u.methodExists(web3.db, 'put');
|
|
|
|
u.methodExists(web3.db, 'get');
|
|
|
|
u.methodExists(web3.db, 'putString');
|
|
|
|
u.methodExists(web3.db, 'getString');
|
2015-01-11 16:54:36 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|