message: Group CosmWasmClient.searchTx tests by query type
diff: @@ -26,7 +26,7 @@ const faucet = {
  address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
  };
  -fdescribe("CosmWasmClient.searchTx", () => {
  +describe("CosmWasmClient.searchTx", () => {
  let postedSend:
  | {
  readonly sender: string;
  @@ -91,6 +91,7 @@ fdescribe("CosmWasmClient.searchTx", () => {
  }
  });
  + describe("with SearchByIdQuery", () => {
  it("can search by ID", async () => {
  pendingWithoutWasmd();
  assert(postedSend, "value must be set in beforeAll()");
  @@ -114,6 +115,35 @@ fdescribe("CosmWasmClient.searchTx", () => {
  expect(result.length).toEqual(0);
  });
  + it("can search by ID and filter by minHeight", async () => {
  + pendingWithoutWasmd();
  + assert(postedSend);
  + const client = new CosmWasmClient(httpUrl);
  + const query = { id: postedSend.hash };
  +
  + {
  + const result = await client.searchTx(query, { minHeight: 0 });
  + expect(result.length).toEqual(1);
  + }
  +
  + {
  + const result = await client.searchTx(query, { minHeight: postedSend.height - 1 });
  + expect(result.length).toEqual(1);
  + }
  +
  + {
  + const result = await client.searchTx(query, { minHeight: postedSend.height });
  + expect(result.length).toEqual(1);
  + }
  +
  + {
  + const result = await client.searchTx(query, { minHeight: postedSend.height + 1 });
  + expect(result.length).toEqual(0);
  + }
  + });
  + });
  +
  + describe("with SearchByHeightQuery", () => {
  it("can search by height", async () => {
  pendingWithoutWasmd();
  assert(postedSend, "value must be set in beforeAll()");
  @@ -128,7 +158,9 @@ fdescribe("CosmWasmClient.searchTx", () => {
  }),
  );
  });
  + });
  + describe("with SearchBySentFromOrToQuery", () => {
  it("can search by sender", async () => {
  pendingWithoutWasmd();
  assert(postedSend, "value must be set in beforeAll()");
  @@ -181,33 +213,6 @@ fdescribe("CosmWasmClient.searchTx", () => {
  );
  });
  - it("can search by ID and filter by minHeight", async () => {
  - pendingWithoutWasmd();
  - assert(postedSend);
  - const client = new CosmWasmClient(httpUrl);
  - const query = { id: postedSend.hash };
  -
  - {
  - const result = await client.searchTx(query, { minHeight: 0 });
  - expect(result.length).toEqual(1);
  - }
  -
  - {
  - const result = await client.searchTx(query, { minHeight: postedSend.height - 1 });
  - expect(result.length).toEqual(1);
  - }
  -
  - {
  - const result = await client.searchTx(query, { minHeight: postedSend.height });
  - expect(result.length).toEqual(1);
  - }
  -
  - {
  - const result = await client.searchTx(query, { minHeight: postedSend.height + 1 });
  - expect(result.length).toEqual(0);
  - }
  - });
  -
  it("can search by recipient and filter by minHeight", async () => {
  pendingWithoutWasmd();
  assert(postedSend);
  @@ -261,6 +266,7 @@ fdescribe("CosmWasmClient.searchTx", () => {
  expect(result.length).toEqual(0);
  }
  });
  + });
  describe("with SearchByTagsQuery", () => {
  it("can search by transfer.recipient", async () => {
  