Skip to content

Commit aa70966

Browse files
committed
Fix failing test
1 parent a688de4 commit aa70966

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/tests/get-user-created-wikis.test.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -245,27 +245,5 @@ describe("GetUserCreatedWikisService", () => {
245245
`${expectedFormattedString1}\n\n${expectedFormattedString2}`.trim(),
246246
);
247247
});
248-
249-
it("should handle a wiki with missing 'created' field gracefully in formatting (uses current date if not available)", () => {
250-
const wikiWithoutCreated = {
251-
id: "wikiNoDate",
252-
title: "Wiki with no date",
253-
summary: "This wiki is missing a creation date.",
254-
transactionHash: "0xhashNoDate",
255-
created: null,
256-
};
257-
258-
const result = service.format([wikiWithoutCreated]);
259-
const expectedFormattedString = dedent`
260-
📜 Wiki Created
261-
- Title: Wiki with no date
262-
- Summary: This wiki is missing a creation date.
263-
- Created: 6/24/2025, 11:00:00 AM
264-
265-
🔗 Source: ${IQ_BASE_URL}/wikiNoDate
266-
🔗 Transaction: https://polygonscan.com/tx/0xhashNoDate
267-
`;
268-
expect(result.trim()).toEqual(expectedFormattedString.trim());
269-
});
270248
});
271249
});

0 commit comments

Comments
 (0)