diff options
| author | Joe Mou <dev@mou.fo> | 2026-02-21 21:53:32 +1100 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-02-21 21:53:55 +1100 |
| commit | 0d95c588319e6f25f4b24612e730f662e209b5dc (patch) | |
| tree | 2a388ad18db916a00f7c878507cda388e745b3ea /cgithub/src/scraper.test.ts | |
| parent | 8319c4867da25739ee220128e050f0f965f6ed0b (diff) | |
Release assets
Also fix release content parsing.
Diffstat (limited to 'cgithub/src/scraper.test.ts')
| -rw-r--r-- | cgithub/src/scraper.test.ts | 6 |
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", + ); }); }); |
