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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user