mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Merge pull request #1163 from cosmos/move-getBalanceStaked-test
Move getBalanceStaked test to correct position and disconnect
This commit is contained in:
commit
d63eba99dc
@ -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…
x
Reference in New Issue
Block a user