mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
589 B
19 lines
589 B
10 years ago
|
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() {
|
||
|
it('should have all methods implemented', function() {
|
||
|
u.methodExists(web3.db, 'put');
|
||
|
u.methodExists(web3.db, 'get');
|
||
|
u.methodExists(web3.db, 'putString');
|
||
|
u.methodExists(web3.db, 'getString');
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|