summaryrefslogtreecommitdiff
path: root/cgithub/src/scraper.test.ts
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-02-21 21:53:32 +1100
committerJoe Mou <dev@mou.fo>2026-02-21 21:53:55 +1100
commit0d95c588319e6f25f4b24612e730f662e209b5dc (patch)
tree2a388ad18db916a00f7c878507cda388e745b3ea /cgithub/src/scraper.test.ts
parent8319c4867da25739ee220128e050f0f965f6ed0b (diff)
Release assets
Also fix release content parsing.
Diffstat (limited to 'cgithub/src/scraper.test.ts')
-rw-r--r--cgithub/src/scraper.test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cgithub/src/scraper.test.ts b/cgithub/src/scraper.test.ts
index 5bd609a..125e6a6 100644
--- a/cgithub/src/scraper.test.ts
+++ b/cgithub/src/scraper.test.ts
@@ -188,6 +188,12 @@ describe("GitHub scraper", () => {
assert.ok(data.release.title.length > 0);
assert.ok(data.release.publishedAt.length > 0);
assert.ok(data.release.bodyHtml.length > 0);
+ assert.ok(data.release.assets && data.release.assets.length >= 2);
+ assert.strictEqual(data.release.assets[0].name, "Source code (zip)");
+ assert.strictEqual(
+ data.release.assets[0].url,
+ "https://github.com/actions/deploy-pages/archive/refs/tags/v4.0.5.zip",
+ );
});
});