aboutsummaryrefslogtreecommitdiffstats
path: root/test/web3.methods.js
blob: a7e02097874c8042014bbaf1e4e898a1ad29f5fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require('es6-promise').polyfill();

var assert = require('assert');
var web3 = require('../index.js');
var u = require('./utils.js');
web3.setProvider(new web3.providers.WebSocketProvider('http://localhost:8080')); // TODO: create some mock provider

describe('web3', function() {
    it('should have all methods implemented', function() {
        u.methodExists(web3, 'sha3');
        u.methodExists(web3, 'toAscii');
        u.methodExists(web3, 'fromAscii');
        u.methodExists(web3, 'toFixed');
        u.methodExists(web3, 'fromFixed');
        u.methodExists(web3, 'offset');
    });
});