Allow multiple tx results in "can query transactions by height"

This commit is contained in:
Simon Warta
2020-06-08 10:22:46 +02:00
parent c448d6beb1
commit 4701e1aaea
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -515,12 +515,12 @@ describe("RestClient", () => {
const client = new RestClient(wasmd.endpoint);
const result = await client.txsQuery(`tx.height=${posted.height}&limit=26`);
expect(result).toEqual({
count: "1",
count: jasmine.stringMatching(/^(1|2|3|4|5)$/), // 1-5 transactions as string
limit: "26",
page_number: "1",
page_total: "1",
total_count: "1",
txs: [posted.tx],
total_count: jasmine.stringMatching(/^(1|2|3|4|5)$/), // 1-5 transactions as string
txs: jasmine.arrayContaining([posted.tx]),
});
});
+3 -3
View File
@@ -387,12 +387,12 @@ describe("RestClient", () => {
const client = new RestClient(wasmd.endpoint);
const result = await client.txsQuery(`tx.height=${posted.height}&limit=26`);
expect(result).toEqual({
count: "1",
count: jasmine.stringMatching(/^(1|2|3|4|5)$/), // 1-5 transactions as string
limit: "26",
page_number: "1",
page_total: "1",
total_count: "1",
txs: [posted.tx],
total_count: jasmine.stringMatching(/^(1|2|3|4|5)$/), // 1-5 transactions as string
txs: jasmine.arrayContaining([posted.tx]),
});
});