From aadd891d8c479563cea52345be4e080ca431fcf9 Mon Sep 17 00:00:00 2001 From: devtealeaf Date: Fri, 11 Oct 2024 17:42:52 +0300 Subject: [PATCH] fix: getShortAddress test --- tests/unit/functions.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/functions.test.ts b/tests/unit/functions.test.ts index 037bffb..071d97c 100644 --- a/tests/unit/functions.test.ts +++ b/tests/unit/functions.test.ts @@ -814,7 +814,7 @@ describe("getShortAddress", () => { it("should return shortened address with custom first and last characters", () => { const address = "0x1234567890abcdef1234567890abcdef12345678"; const result = getShortAddress(address, 6, 4); - expect(result).toBe("0x123456..5678"); + expect(result).toBe("0x1234..5678"); }); it("should handle very short addresses correctly", () => { @@ -832,6 +832,6 @@ describe("getShortAddress", () => { it("should return full address if firstChars + lastChars covers the whole address", () => { const address = "0xabcdef"; const result = getShortAddress(address, 3, 3); - expect(result).toBe("0xab..ef"); + expect(result).toBe("0xa..def"); }); });