diff options
| author | Joe Mou <dev@mou.fo> | 2026-02-11 02:09:26 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-02-21 16:30:23 +1100 |
| commit | 8fa091c67ec624d7889aa5c22b90442197a210c4 (patch) | |
| tree | 90d57f2ac20170e538d116790f68251bd2635928 /src/scraper.test.ts | |
| parent | ad0084a9c8c5cedec3718db4631e282d96133e20 (diff) | |
Add single release detail pages and refactor templates
Refactored releases display into reusable partial template (_release.eta) and added support for viewing individual releases at /:owner/:repo/releases/tag/:tag with navigation back to all releases.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/scraper.test.ts')
| -rw-r--r-- | src/scraper.test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/scraper.test.ts b/src/scraper.test.ts index 33f00f1..0b91b6a 100644 --- a/src/scraper.test.ts +++ b/src/scraper.test.ts @@ -4,6 +4,7 @@ import { getGitHubBlob, getGitHubCommits, getGitHubIssues, + getGitHubRelease, getGitHubReleases, getGitHubRepo, getGitHubTree, @@ -174,6 +175,18 @@ describe("GitHub scraper", () => { assert.ok(firstRelease.publishedAt.length > 0); assert.ok(firstRelease.bodyHtml.length > 0); }); + + it("should fetch single release", async () => { + const data = await getGitHubRelease("actions", "deploy-pages", "v4.0.5"); + + assert.strictEqual(data.repo.owner, "actions"); + assert.strictEqual(data.repo.name, "deploy-pages"); + + assert.ok(data.release.tagName.length > 0); + assert.ok(data.release.title.length > 0); + assert.ok(data.release.publishedAt.length > 0); + assert.ok(data.release.bodyHtml.length > 0); + }); }); describe("rich file types", () => { |
