2015-01-11 16:54:36 +00:00
|
|
|
var web3 = require('../index.js');
|
2015-03-23 22:10:18 +00:00
|
|
|
var u = require('./helpers/test.utils.js');
|
2015-01-11 16:54:36 +00:00
|
|
|
|
|
|
|
describe('web3', function() {
|
2015-03-25 21:17:35 +00:00
|
|
|
describe('methods', function () {
|
|
|
|
u.methodExists(web3, 'sha3');
|
|
|
|
u.methodExists(web3, 'toAscii');
|
|
|
|
u.methodExists(web3, 'fromAscii');
|
|
|
|
u.methodExists(web3, 'toDecimal');
|
|
|
|
u.methodExists(web3, 'fromDecimal');
|
|
|
|
u.methodExists(web3, 'fromWei');
|
|
|
|
u.methodExists(web3, 'toWei');
|
|
|
|
u.methodExists(web3, 'toBigNumber');
|
|
|
|
u.methodExists(web3, 'isAddress');
|
|
|
|
u.methodExists(web3, 'setProvider');
|
|
|
|
u.methodExists(web3, 'reset');
|
2015-02-06 10:36:27 +00:00
|
|
|
|
2015-03-25 21:17:35 +00:00
|
|
|
u.propertyExists(web3, 'providers');
|
|
|
|
u.propertyExists(web3, 'eth');
|
|
|
|
u.propertyExists(web3, 'db');
|
|
|
|
u.propertyExists(web3, 'shh');
|
|
|
|
});
|
2015-01-11 16:54:36 +00:00
|
|
|
});
|
|
|
|
|