mirror of https://github.com/status-im/web3.js.git
25 lines
785 B
JavaScript
25 lines
785 B
JavaScript
var web3 = require('../index.js');
|
|
var u = require('./helpers/test.utils.js');
|
|
|
|
describe('web3', function() {
|
|
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');
|
|
|
|
u.propertyExists(web3, 'providers');
|
|
u.propertyExists(web3, 'eth');
|
|
u.propertyExists(web3, 'db');
|
|
u.propertyExists(web3, 'shh');
|
|
});
|
|
});
|
|
|