web3.js/test/web3.eth.getBlockTransactio...

30 lines
734 B
JavaScript
Raw Normal View History

2015-03-24 08:44:25 +00:00
var chai = require('chai');
var web3 = require('../index');
var testMethod = require('./helpers/test.method.js');
var method = 'getBlockTransactionCount';
var tests = [{
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
result: '0xb',
formattedResult: 11,
call: 'eth_getBlockTransactionCountByHash'
},{
args: [436],
formattedArgs: ['0x1b4'],
result: '0xb',
formattedResult: 11,
call: 'eth_getBlockTransactionCountByNumber'
},{
args: ['pending'],
formattedArgs: ['pending'],
result: '0xb',
formattedResult: 11,
call: 'eth_getBlockTransactionCountByNumber'
2015-03-24 08:44:25 +00:00
}];
2015-03-24 10:44:33 +00:00
testMethod.runTests('eth', method, tests);
2015-03-24 08:44:25 +00:00