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.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/scraper.test.ts b/src/scraper.test.ts
index 5bd609a..125e6a6 100644
--- a/src/scraper.test.ts
+++ b/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",
+ );
});
});