Api & RxApi now created via new (#153)

* Api & RxApi now created via new

* Bump version
This commit is contained in:
Jaco Greeff
2018-09-14 17:32:58 +02:00
committed by GitHub
parent d9ab009917
commit 35b4f9a095
23 changed files with 106 additions and 102 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
import storage from '@polkadot/storage';
import createApi from '../../api/src';
import Api from '../../api/src';
import Ws from '../src/ws';
describe.skip('e2e', () => {
@@ -12,7 +12,7 @@ describe.skip('e2e', () => {
beforeEach(() => {
jest.setTimeout(30000);
api = createApi(new Ws('ws://127.0.0.1:9944'));
api = new Api(new Ws('ws://127.0.0.1:9944'));
});
it('subscribes to chain_newHead', (done) => {