Merge pull request #1163 from cosmos/move-getBalanceStaked-test

Move getBalanceStaked test to correct position and disconnect
This commit is contained in:
Simon Warta 2022-06-08 15:14:51 +02:00 committed by GitHub
commit d63eba99dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,16 +257,6 @@ describe("StargateClient", () => {
client.disconnect();
});
describe("getBalanceStaked", () => {
it("works", async () => {
pendingWithoutSimapp();
const client = await StargateClient.connect(simapp.tendermintUrl);
const response = await client.getBalanceStaked(faucet.address0);
expect(response).toEqual({ denom: "ustake", amount: "63474" });
});
});
it("returns 0 for non-existent balance", async () => {
pendingWithoutSimapp();
const client = await StargateClient.connect(simapp.tendermintUrl);
@ -325,6 +315,18 @@ describe("StargateClient", () => {
});
});
describe("getBalanceStaked", () => {
it("works", async () => {
pendingWithoutSimapp();
const client = await StargateClient.connect(simapp.tendermintUrl);
const response = await client.getBalanceStaked(faucet.address0);
expect(response).toEqual({ denom: "ustake", amount: "63474" });
client.disconnect();
});
});
describe("broadcastTx", () => {
it("broadcasts a transaction", async () => {
pendingWithoutSimapp();