Move getBalanceStaked test to correct position and disconnect
This commit is contained in:
parent
79473bb308
commit
c47ce3e872
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user