Classify Http & Ws providers (#120)

* Class-ify HttpProvider

* Class-ify WsProvider (tests still WIP)

* Rework tests

* rx-api usage
This commit is contained in:
Jaco Greeff
2018-08-07 16:59:40 +02:00
committed by GitHub
parent f74fd9e01d
commit fe4c34defe
38 changed files with 342 additions and 531 deletions
+2 -2
View File
@@ -5,14 +5,14 @@
import { ApiInterface } from '../../api/src/types';
import createApi from '../../api/src';
import createProvider from '../src/ws';
import Ws from '../src/ws';
describe.skip('e2e', () => {
let api: ApiInterface;
beforeEach(() => {
jest.setTimeout(30000);
api = createApi(createProvider('ws://127.0.0.1:9944'));
api = createApi(new Ws('ws://127.0.0.1:9944'));
});
it('subscribes to client_newHead', (done) => {