summaryrefslogtreecommitdiff
path: root/cgithub/src/scraper.test.ts
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-07-15 01:46:06 -0400
committerJoe Mou <dev@mou.fo>2026-07-15 01:46:06 -0400
commit9fbb5f0d68a131b55bc172d46b75705f2842af04 (patch)
treeb2465407f8c1ffbbd19706033ea88adefa73526c /cgithub/src/scraper.test.ts
parent59f587d9ffac3d20486ec6773aedebb54012cc32 (diff)
Replace null overview files with HTML comments
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'cgithub/src/scraper.test.ts')
-rw-r--r--cgithub/src/scraper.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgithub/src/scraper.test.ts b/cgithub/src/scraper.test.ts
index d6991d7..f9b60e8 100644
--- a/cgithub/src/scraper.test.ts
+++ b/cgithub/src/scraper.test.ts
@@ -36,7 +36,7 @@ describe("GitHub scraper", () => {
assert.ok(data.info.latestReleaseDate?.startsWith("2026-03-25"));
assert.ok(data.items.length > 0);
- assert.ok(Object.keys(data.overviewHtml ?? {}).includes("README.md"));
+ assert.ok(typeof data.overviewHtml?.["README.md"] === "string");
});
it("should fetch tree", async () => {
@@ -60,7 +60,7 @@ describe("GitHub scraper", () => {
},
]);
- assert.ok(Object.keys(data.overviewHtml ?? {}).includes("README.md"));
+ assert.ok(typeof data.overviewHtml?.["README.md"] === "string");
});
it("should fetch text blob", async () => {