From ac55ca442e8aabc8b168f2cbbaef374f950f7aa1 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Thu, 7 Mar 2024 15:11:57 +0100 Subject: [PATCH] fix: new version --- packages/integration-tests/src/helper.ts | 2 +- packages/integration-tests/tests/api/tokens.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integration-tests/src/helper.ts b/packages/integration-tests/src/helper.ts index c9fa3addcd..1112eccb8d 100644 --- a/packages/integration-tests/src/helper.ts +++ b/packages/integration-tests/src/helper.ts @@ -64,7 +64,7 @@ export class Helper { return new Promise((resolve) => setTimeout(resolve, ms)); } - async performGETrequest(apiRoute: string, network?: string) { + async performBlockExplorerApiGetRequest(apiRoute: string, network?: string) { if (network === `sepolia`) { return request(environment.blockExplorerSepoliaAPI).get(apiRoute); } else if (!network || network === `local`) { diff --git a/packages/integration-tests/tests/api/tokens.test.ts b/packages/integration-tests/tests/api/tokens.test.ts index b99d7f503c..19f9941fde 100644 --- a/packages/integration-tests/tests/api/tokens.test.ts +++ b/packages/integration-tests/tests/api/tokens.test.ts @@ -116,7 +116,7 @@ describe("Tokens", () => { it("Verify /api?module=token&action=tokeninfo response", async () => { await helper.retryTestAction(async () => { apiRoute = `/api?module=token&action=tokeninfo&contractaddress=${Token.ETHER_ERC20_Address}`; - response = await helper.performGETrequest(apiRoute); + response = await helper.performBlockExplorerApiGetRequest(apiRoute); expect(response.status).toBe(200); expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" }));