Skip to content

Commit

Permalink
revert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keefer Taylor committed Dec 10, 2020
1 parent 9738216 commit e9bbe0e
Showing 1 changed file with 33 additions and 34 deletions.
67 changes: 33 additions & 34 deletions integration_test/chain/tezos/TezosNodeReader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,57 +10,56 @@ import FetchSelector from '../../../src/utils/FetchSelector';
FetchSelector.setFetch(fetch);

import { TezosNodeReader } from '../../../src/chain/tezos/TezosNodeReader';
// import { tezosServer, keys } from '../../TestAssets';
const tezosServer = "https://rpctest.tzbeta.net"
import { tezosServer, keys } from '../../TestAssets';

describe('TezosNodeReader integration test suite', () => {
// it('Get chain head', async () => {
// const result = await TezosNodeReader.getBlockHead(tezosServer);
it('Get chain head', async () => {
const result = await TezosNodeReader.getBlockHead(tezosServer);

// expect(result['header']['level']).to.be.greaterThan(1);
// });
expect(result['header']['level']).to.be.greaterThan(1);
});

// it('Get account counter', async () => {
// const result = await TezosNodeReader.getCounterForAccount(tezosServer, keys.publicKeyHash);
it('Get account counter', async () => {
const result = await TezosNodeReader.getCounterForAccount(tezosServer, keys.publicKeyHash);

// expect(result).to.be.greaterThan(1);
// });
expect(result).to.be.greaterThan(1);
});

// it('Get account reveal status', async () => {
// const result = await TezosNodeReader.isManagerKeyRevealedForAccount(tezosServer, keys.publicKeyHash);
it('Get account reveal status', async () => {
const result = await TezosNodeReader.isManagerKeyRevealedForAccount(tezosServer, keys.publicKeyHash);

// expect(result).to.be.true;
// });
expect(result).to.be.true;
});

// it('Get account manager key', async () => {
// const result = await TezosNodeReader.getAccountManagerForBlock(tezosServer, 'head', keys.publicKeyHash);
it('Get account manager key', async () => {
const result = await TezosNodeReader.getAccountManagerForBlock(tezosServer, 'head', keys.publicKeyHash);

// expect(result).to.be.equal(keys.publicKey);
// });
expect(result).to.be.equal(keys.publicKey);
});

// it('Get account info', async () => {
// const result = await TezosNodeReader.getAccountForBlock(tezosServer, 'head', keys.publicKeyHash);
it('Get account info', async () => {
const result = await TezosNodeReader.getAccountForBlock(tezosServer, 'head', keys.publicKeyHash);

// expect(parseInt(result.balance, 10)).to.be.greaterThan(10000);
// });
expect(parseInt(result.balance, 10)).to.be.greaterThan(10000);
});

// it('Get account spendable balance', async () => {
// const result = await TezosNodeReader.getSpendableBalanceForAccount(tezosServer, keys.publicKeyHash);
it('Get account spendable balance', async () => {
const result = await TezosNodeReader.getSpendableBalanceForAccount(tezosServer, keys.publicKeyHash);

// expect(result).to.be.greaterThan(10000);
// });
expect(result).to.be.greaterThan(10000);
});

// it('Get account funding burn flag', async () => {
// const result = await TezosNodeReader.isImplicitAndEmpty(tezosServer, keys.publicKeyHash);
it('Get account funding burn flag', async () => {
const result = await TezosNodeReader.isImplicitAndEmpty(tezosServer, keys.publicKeyHash);

// expect(result).to.be.false;
// });
expect(result).to.be.false;
});

// it('Get head', async () => {
// const result = await TezosNodeReader.getBlock(tezosServer);
it('Get head', async () => {
const result = await TezosNodeReader.getBlock(tezosServer);

// expect(result.header.level).to.be.greaterThan(1);
// });
expect(result.header.level).to.be.greaterThan(1);
});

it('Gets delegate for a delegated implicit account', async () => {
const result = await TezosNodeReader.getDelegate(tezosServer, "tz1PnUd6R31MnjEE8VhfZhZdbGc1hrWQvjnK");
Expand Down

0 comments on commit e9bbe0e

Please sign in to comment.