web3.js/test/web3.methods.js

25 lines
742 B
JavaScript
Raw Normal View History

var assert = require('assert');
var web3 = require('../index.js');
2015-02-03 18:48:51 +00:00
var u = require('./test.utils.js');
describe('web3', function() {
u.methodExists(web3, 'sha3');
u.methodExists(web3, 'toAscii');
u.methodExists(web3, 'fromAscii');
2015-02-06 10:36:27 +00:00
u.methodExists(web3, 'toDecimal');
u.methodExists(web3, 'fromDecimal');
2015-02-20 08:34:26 +00:00
u.methodExists(web3, 'fromWei');
u.methodExists(web3, 'toWei');
2015-02-26 14:54:49 +00:00
u.methodExists(web3, 'toBigNumber');
2015-02-20 08:34:26 +00:00
u.methodExists(web3, 'isAddress');
2015-02-06 10:36:27 +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');
});