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.
35 lines
1.3 KiB
35 lines
1.3 KiB
10 years ago
|
var chai = require('chai');
|
||
|
var assert = chai.assert;
|
||
10 years ago
|
var web3 = require('../index.js');
|
||
10 years ago
|
var u = require('./helpers/test.utils.js');
|
||
10 years ago
|
|
||
10 years ago
|
describe('web3.eth', function() {
|
||
|
describe('methods', function() {
|
||
10 years ago
|
u.methodExists(web3.eth, 'getBalance');
|
||
|
u.methodExists(web3.eth, 'getStorageAt');
|
||
|
u.methodExists(web3.eth, 'getTransactionCount');
|
||
10 years ago
|
u.methodExists(web3.eth, 'getCode');
|
||
10 years ago
|
u.methodExists(web3.eth, 'sendTransaction');
|
||
10 years ago
|
u.methodExists(web3.eth, 'call');
|
||
10 years ago
|
u.methodExists(web3.eth, 'getBlock');
|
||
|
u.methodExists(web3.eth, 'getTransaction');
|
||
|
u.methodExists(web3.eth, 'getUncle');
|
||
|
u.methodExists(web3.eth, 'getCompilers');
|
||
|
u.methodExists(web3.eth.compile, 'lll');
|
||
|
u.methodExists(web3.eth.compile, 'solidity');
|
||
|
u.methodExists(web3.eth.compile, 'serpent');
|
||
|
u.methodExists(web3.eth, 'getBlockTransactionCount');
|
||
|
u.methodExists(web3.eth, 'getBlockUncleCount');
|
||
|
u.methodExists(web3.eth, 'filter');
|
||
|
u.methodExists(web3.eth, 'contract');
|
||
10 years ago
|
|
||
10 years ago
|
u.propertyExists(web3.eth, 'coinbase');
|
||
|
u.propertyExists(web3.eth, 'mining');
|
||
|
u.propertyExists(web3.eth, 'gasPrice');
|
||
|
u.propertyExists(web3.eth, 'accounts');
|
||
|
u.propertyExists(web3.eth, 'defaultBlock');
|
||
10 years ago
|
u.propertyExists(web3.eth, 'blockNumber');
|
||
10 years ago
|
});
|
||
|
});
|
||
|
|