diff options
| author | Joe Mou <dev@mou.fo> | 2026-07-15 01:46:06 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-07-15 01:46:06 -0400 |
| commit | 0f4681d55b9d865a4e860fb3f28203ffd0bdc034 (patch) | |
| tree | 99e68407aeb84585d82fa3e4eb2bb312bca01e27 /src/scraper.test.ts | |
| parent | 1866da82aea7be7b161f45cedc3737d2147f2c4c (diff) | |
Replace null overview files with HTML comments
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'src/scraper.test.ts')
| -rw-r--r-- | src/scraper.test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scraper.test.ts b/src/scraper.test.ts index d6991d7..f9b60e8 100644 --- a/src/scraper.test.ts +++ b/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 () => { |
