Skip to content

Commit

Permalink
fix: getShortAddress test
Browse files Browse the repository at this point in the history
  • Loading branch information
DevTeaLeaf committed Oct 11, 2024
1 parent 104ee40 commit aadd891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand All @@ -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");
});
});

0 comments on commit aadd891

Please sign in to comment.