expose util as Api.util (#4372)
This commit is contained in:
parent
f1995b3fb0
commit
5217469e85
@ -131,6 +131,8 @@ export default class Api extends EventEmitter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static util = util
|
||||||
|
|
||||||
static Transport = {
|
static Transport = {
|
||||||
Http: Http,
|
Http: Http,
|
||||||
Ws: Ws
|
Ws: Ws
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
import { TEST_HTTP_URL, endpointTest } from '../../test/mockRpc';
|
import { TEST_HTTP_URL, endpointTest } from '../../test/mockRpc';
|
||||||
|
|
||||||
|
import util from './util';
|
||||||
import Api from './api';
|
import Api from './api';
|
||||||
|
|
||||||
import ethereumRpc from '../jsonrpc/';
|
import ethereumRpc from '../jsonrpc/';
|
||||||
@ -44,4 +45,8 @@ describe('api/Api', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('exposes util as static property', () => {
|
||||||
|
expect(Api.util).to.equal(util);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user