web3.js/test/web3.eth.getBlockUncleCount.js

22 lines
562 B
JavaScript
Raw Normal View History

2015-03-24 01:44:25 -07:00
var chai = require('chai');
var web3 = require('../index');
var method = 'getBlockUncleCount';
var testMethod = require('./helpers/test.method.js');
var tests = [{
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855'],
result: '0xb',
formattedResult: 11,
call: 'eth_getUncleCountByBlockHash'
},{
args: [436],
formattedArgs: ['0x1b4'],
result: '0xb',
formattedResult: 11,
call: 'eth_getUncleCountByBlockNumber'
}];
2015-03-24 03:44:33 -07:00
testMethod.runTests('eth', method, tests);