mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
ded221fba2
Conflicts: libjsqrc/ethereumjs/.travis.yml libjsqrc/ethereumjs/README.md libjsqrc/ethereumjs/dist/ethereum.js libjsqrc/ethereumjs/dist/ethereum.js.map libjsqrc/ethereumjs/lib/abi.js libjsqrc/ethereumjs/package.json
19 lines
589 B
JavaScript
19 lines
589 B
JavaScript
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');
|
|
});
|
|
});
|
|
});
|
|
|