Skip to content

Commit

Permalink
fix: new one
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Feb 5, 2024
1 parent 49024d2 commit e18f395
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/integration-tests/tests/api/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ describe("API module: Account", () => {

describe("/address/{address}", () => {
beforeAll(async () => {
await playbook.deployNFTtoL1();
await playbook.deployNFTtoL2();
await playbook.deployMultiCallContracts();
await playbook.deployMultiTransferETH();
await playbook.deployGreeterToL2();
await playbook.useMultiCallContracts();
await playbook.useMultiTransferETH();
});

//@id1704
Expand Down Expand Up @@ -128,7 +122,6 @@ describe("API module: Account", () => {
expect(response.status).toBe(200);
expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" }));
expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" }));
expect(response.body.result.length).toBeGreaterThan(1);
expect(typeof response.body.result[0].blockNumber).toStrictEqual("string");
expect(typeof response.body.result[0].timeStamp).toStrictEqual("string");
expect(typeof response.body.result[0].hash).toStrictEqual("string");
Expand Down Expand Up @@ -180,7 +173,7 @@ describe("API module: Account", () => {
await helper.retryTestAction(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=${Token.ETHER_ERC20_Address}&address=${Token.ETHER_ERC20_Address}`;
apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`;
response = await helper.performGETrequest(apiRoute);

expect(response.status).toBe(200);
Expand Down

0 comments on commit e18f395

Please sign in to comment.