From e7fce2a73a640b3a49bbe821b6d8d665494bb4f5 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 3 May 2021 10:06:13 +0200 Subject: [PATCH] Cleanup getContracts test --- packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts b/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts index 9e12726b..e0437dba 100644 --- a/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts +++ b/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ import { Code } from "@cosmjs/cosmwasm-launchpad"; import { sha256 } from "@cosmjs/crypto"; -import { Bech32, fromAscii, fromBase64, fromHex, toAscii, toBase64 } from "@cosmjs/encoding"; +import { fromAscii, fromBase64, fromHex, toAscii } from "@cosmjs/encoding"; import { Int53 } from "@cosmjs/math"; import { DirectSecp256k1HdWallet, @@ -274,10 +274,8 @@ describe("CosmWasmClient", () => { pendingWithoutWasmd(); const client = await CosmWasmClient.connect(wasmd.endpoint); const result = await client.getContracts(1); - expect(result.length).toBeGreaterThanOrEqual(3); - const [zero, one, two] = result; - const expected = deployedHackatom.instances.map((info) => info.address); - expect([zero, one, two]).toEqual(expected); + const expectedAddresses = deployedHackatom.instances.map((info) => info.address); + expect(result).toEqual(expectedAddresses); }); });