aboutsummaryrefslogtreecommitdiff
path: root/src/scraper.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scraper.test.ts')
-rw-r--r--src/scraper.test.ts4
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 () => {