* Docs renames (& removal for re-gen) * Rename api, api-provider & api-rx * Apoi -> Rpc, RxApi -> RpcRx (classes) * Add .nodoc * Bump version * Link updates (summary) * Cleanup deleted (master version) * Deleted re-instated * More... ;) * Types... * Revert .nodoc
30 lines
696 B
JavaScript
30 lines
696 B
JavaScript
// Copyright 2017-2018 @polkadot/api authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the ISC license. See the LICENSE file for details.
|
|
|
|
import Ws from '@polkadot/rpc-provider/ws';
|
|
|
|
import Api from '../../src';
|
|
|
|
describe.skip('e2e basics', () => {
|
|
let api;
|
|
|
|
beforeEach(() => {
|
|
jest.setTimeout(30000);
|
|
api = new Api(new Ws('ws://127.0.0.1:9944'));
|
|
});
|
|
|
|
it('retrieves the pending extrinsics', () => {
|
|
return api.author
|
|
.pendingExtrinsics()
|
|
.then((extrinsics) => {
|
|
console.error('extrinsics', extrinsics);
|
|
})
|
|
.catch((error) => {
|
|
console.error(error);
|
|
|
|
throw error;
|
|
});
|
|
});
|
|
});
|