From 24edee89c5fa0c3dd450d7bfa4e1818f11fb3213 Mon Sep 17 00:00:00 2001 From: pcheremu Date: Wed, 10 Jan 2024 07:49:20 +0100 Subject: [PATCH] test: refactoring --- packages/integration-tests/tests/api/logs.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/integration-tests/tests/api/logs.test.ts b/packages/integration-tests/tests/api/logs.test.ts index bbf5a1671..8338e59c2 100644 --- a/packages/integration-tests/tests/api/logs.test.ts +++ b/packages/integration-tests/tests/api/logs.test.ts @@ -32,7 +32,6 @@ describe("Logs API", () => { return request(environment.blockExplorerAPI) .get(apiRoute) .expect(200) - .expect((res) => console.log(res.body.result[0])) .expect((res) => expect(res.body.result[0]).toStrictEqual(expect.objectContaining({ address: contractAddress })) ) @@ -45,7 +44,7 @@ describe("Logs API", () => { .expect((res) => expect(res.body.result[0].data.length).toBe(194)) .expect((res) => expect(typeof res.body.result[0].blockNumber).toStrictEqual("string")) .expect((res) => expect(res.body.result[0].blockNumber.startsWith("0x")).toBe(true)) - .expect((res) => expect(res.body.result[0].blockNumber.length).toBe(5)) + .expect((res) => expect(typeof res.body.result[0].blockNumber.length).toStrictEqual("string")) .expect((res) => expect(typeof res.body.result[0].timeStamp).toStrictEqual("string")) .expect((res) => expect(res.body.result[0].timeStamp.startsWith("0x")).toBe(true)) .expect((res) => expect(res.body.result[0].timeStamp.length).toBe(10))