Skip to content

Commit

Permalink
fix: new one
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Mar 22, 2024
1 parent 2329d2a commit f5ddc30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/integration-tests/tests/api/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,12 @@ describe("API module: Account", () => {
await helper.runRetriableTestAction(async () => {
const blocks = await request(environment.blockExplorerAPI).get("/blocks");
const blockNumber = blocks.body.items[0].number;
apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${IncorrectValues.incorrectAddressFormat}&address=${Wallets.richWalletAddress}`;
apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${Wallets.richWalletAddress}&address=${IncorrectValues.incorrectAddressFormat}`;
response = await helper.performBlockExplorerApiGetRequest(apiRoute);

expect(response.body).toStrictEqual(expect.objectContaining({ status: "0" }));
expect(response.body).toStrictEqual(expect.objectContaining({ message: "NOTOK" }));
expect(response.body).toStrictEqual(
expect.objectContaining({ result: "Error! Invalid contract address format" })
);
expect(response.body).toStrictEqual(expect.objectContaining({ result: "Error! Invalid address format" }));
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/tests/api/blocks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe("Blocks", () => {

describe("Blocks - Negative tests", () => {
//id1946
it("/getblocknobytime - No closes block present", async () => {
it("/getblocknobytime - No closest block present", async () => {
await helper.runRetriableTestAction(async () => {
const blocks = await request(environment.blockExplorerAPI).get("/blocks");
const blockTimestamp = blocks.body.items[0].timestamp;
Expand Down

0 comments on commit f5ddc30

Please sign in to comment.