mirror of https://github.com/status-im/web3.js.git
most of test working
This commit is contained in:
parent
7dff0a461a
commit
95a3b5a35f
|
@ -1,23 +0,0 @@
|
|||
var chai = require('chai');
|
||||
var assert = chai.assert;
|
||||
var web3 = require('../index');
|
||||
|
||||
describe('lib/web3/method', function () {
|
||||
describe('request', function () {
|
||||
it('should create proper request', function () {
|
||||
|
||||
var callback = function (err, result) {};
|
||||
var expected = {
|
||||
method: 'eth_getBalance',
|
||||
callback: callback,
|
||||
params: ['0x0000000000000000000000000000000000000000', 'latest'],
|
||||
};
|
||||
|
||||
var request = web3.eth.getBalance.request('0x0000000000000000000000000000000000000000', 'latest', callback);
|
||||
|
||||
expected.format = request.format;
|
||||
assert.deepEqual(request, expected);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
var chai = require('chai');
|
||||
var web3 = require('../index');
|
||||
var Web3 = require('../index');
|
||||
var web3 = new Web3();
|
||||
var assert = chai.assert;
|
||||
|
||||
var tests = [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
var web3 = require('../index.js');
|
||||
var Web3 = require('../index.js');
|
||||
var web3 = new Web3();
|
||||
var u = require('./helpers/test.utils.js');
|
||||
|
||||
describe('web3', function() {
|
||||
|
|
Loading…
Reference in New Issue