2015-01-11 17:16:50 +00:00
|
|
|
var assert = require('assert');
|
|
|
|
var web3 = require('../index.js');
|
2015-02-03 22:14:19 +00:00
|
|
|
var u = require('./test.utils.js');
|
2015-01-11 17:16:50 +00:00
|
|
|
|
|
|
|
describe('web3', function() {
|
2015-01-15 16:25:50 +00:00
|
|
|
u.methodExists(web3, 'sha3');
|
|
|
|
u.methodExists(web3, 'toAscii');
|
|
|
|
u.methodExists(web3, 'fromAscii');
|
2015-02-17 19:00:30 +00:00
|
|
|
u.methodExists(web3, 'toDecimal');
|
|
|
|
u.methodExists(web3, 'fromDecimal');
|
2015-03-10 16:41:32 +00:00
|
|
|
u.methodExists(web3, 'fromWei');
|
|
|
|
u.methodExists(web3, 'toWei');
|
|
|
|
u.methodExists(web3, 'toBigNumber');
|
|
|
|
u.methodExists(web3, 'isAddress');
|
2015-02-17 19:00:30 +00:00
|
|
|
u.methodExists(web3, 'setProvider');
|
|
|
|
u.methodExists(web3, 'reset');
|
|
|
|
|
|
|
|
u.propertyExists(web3, 'manager');
|
|
|
|
u.propertyExists(web3, 'providers');
|
|
|
|
u.propertyExists(web3, 'eth');
|
|
|
|
u.propertyExists(web3, 'db');
|
|
|
|
u.propertyExists(web3, 'shh');
|
2015-01-11 17:16:50 +00:00
|
|
|
});
|
|
|
|
|