Fix error causing balances.all = undefined (#891)

* Updated with derive.balances.all

* add new keys to votingBalance

* remove multi test

* vestedBalance > 0

* bestNumber bug

* Check balances.all > 0

* Check balances.all > 0

* Check balances.all > 0
This commit is contained in:
kwingram25
2019-05-09 17:20:30 +02:00
committed by Jaco Greeff
parent 8d9f7a4d46
commit b8fabfeade
2 changed files with 9 additions and 2 deletions
@@ -8,6 +8,8 @@ import { LinkageResult } from '@polkadot/types/codec/Linkage';
import Api from '../../src/promise';
const ZERO = new BN(0);
describe.skip('e2e queries', () => {
const keyring = testingPairs({ type: 'ed25519' });
let api;
@@ -107,9 +109,14 @@ describe.skip('e2e queries', () => {
keyring.alice.address(),
(all) => {
expect(all.accountId).toEqual(keyring.alice.address());
expect(all.freeBalance).toBeDefined();
expect(all.reservedBalance).toBeDefined();
expect(all.freeBalance.gt(ZERO)).toBe(true);
expect(all.availableBalance).toBeDefined();
expect(all.availableBalance.gt(ZERO)).toBe(true);
expect(all.reservedBalance).toBeDefined();
expect(all.lockedBalance).toBeDefined();
expect(all.vestedBalance).toBeDefined();