most of test working

This commit is contained in:
debris 2015-10-08 04:14:43 +02:00
parent 7dff0a461a
commit 95a3b5a35f
4 changed files with 4 additions and 25 deletions

View File

@ -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);
});
});
});

View File

@ -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 = [

View File

@ -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() {