mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-24 03:58:13 +00:00
47 lines
1.6 KiB
JavaScript
47 lines
1.6 KiB
JavaScript
var chai = require('chai');
|
|
var assert = chai.assert;
|
|
var u = require('./helpers/test.utils.js');
|
|
|
|
var Eth = require('../packages/web3-eth');
|
|
var eth = new Eth();
|
|
|
|
describe('eth', function() {
|
|
describe('methods', function() {
|
|
u.methodExists(eth, 'getBalance');
|
|
u.methodExists(eth, 'getStorageAt');
|
|
u.methodExists(eth, 'getTransactionCount');
|
|
u.methodExists(eth, 'getCode');
|
|
u.methodExists(eth, 'isSyncing');
|
|
u.methodExists(eth, 'sendTransaction');
|
|
u.methodExists(eth, 'call');
|
|
u.methodExists(eth, 'getBlock');
|
|
u.methodExists(eth, 'getTransaction');
|
|
u.methodExists(eth, 'getUncle');
|
|
u.methodExists(eth, 'getCompilers');
|
|
u.methodExists(eth.compile, 'lll');
|
|
u.methodExists(eth.compile, 'solidity');
|
|
u.methodExists(eth.compile, 'serpent');
|
|
u.methodExists(eth, 'getBlockTransactionCount');
|
|
u.methodExists(eth, 'getBlockUncleCount');
|
|
u.methodExists(eth, 'subscribe');
|
|
u.methodExists(eth, 'contract');
|
|
|
|
|
|
u.methodExists(eth, 'isMining');
|
|
u.methodExists(eth, 'getCoinbase');
|
|
u.methodExists(eth, 'getGasPrice');
|
|
u.methodExists(eth, 'getHashrate');
|
|
u.methodExists(eth, 'getAccounts');
|
|
u.methodExists(eth, 'getBlockNumber');
|
|
u.methodExists(eth, 'getProtocolVersion');
|
|
|
|
u.methodExists(eth, 'setProvider');
|
|
|
|
u.propertyExists(eth, 'iban');
|
|
u.propertyExists(eth, 'providers');
|
|
u.propertyExists(eth, 'defaultBlock');
|
|
u.propertyExists(eth, 'defaultAccount');
|
|
});
|
|
});
|
|
|