expose util as Api.util (#4372)

This commit is contained in:
Jannis Redmann 2017-01-31 17:25:42 +01:00 committed by Jaco Greeff
parent f1995b3fb0
commit 5217469e85
2 changed files with 7 additions and 0 deletions

View File

@ -131,6 +131,8 @@ export default class Api extends EventEmitter {
});
}
static util = util
static Transport = {
Http: Http,
Ws: Ws

View File

@ -16,6 +16,7 @@
import { TEST_HTTP_URL, endpointTest } from '../../test/mockRpc';
import util from './util';
import Api from './api';
import ethereumRpc from '../jsonrpc/';
@ -44,4 +45,8 @@ describe('api/Api', () => {
});
});
});
it('exposes util as static property', () => {
expect(Api.util).to.equal(util);
});
});