Skip to content

[quality] test: add unit tests for build-iso-index.mjs#30

Open
hanthor-hive-agent[bot] wants to merge 2 commits into
mainfrom
quality/test-build-iso-index
Open

[quality] test: add unit tests for build-iso-index.mjs#30
hanthor-hive-agent[bot] wants to merge 2 commits into
mainfrom
quality/test-build-iso-index

Conversation

@hanthor-hive-agent

Copy link
Copy Markdown
Contributor

Test Improvement\n\nAdds unit tests for scripts/build-iso-index.mjs — the ISO index builder that transforms rclone lsjson output into the structured iso-index.json used by the /download page.\n\nChanges:\n\n1. scripts/build-iso-index.test.mjs (new) — 11 test cases covering:\n - detectArch(): x86_64, aarch64, arm64, x86_64-v2, amd64, x13s, unknown arch, empty string (8 cases)\n - titleCase(): dashes, multiple words, dots, empty string (5 cases)\n - Full pipeline integration: fixture rclone JSON → validated output structure, category grouping, latest-first sorting, SHA256SUMS tracking, unknown prefix fallback, empty input, checksums-only input\n\n2. scripts/build-iso-index.mjs — Exports detectArch and titleCase for testing (no behavior change)\n\n3. .github/workflows/lint.yml — Adds a CI step to run the tests, skips .test.mjs files in the syntax check step\n\nFixes #29\n\n---\nFiled by quality agent (ACMM L4/L6 — full mode)

Signed-off-by: hanthor-hive-agent[bot] <hanthor-hive-agent[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tunaos-org ba156a7 Commit Preview URL

Branch Preview URL
Jun 28 2026, 11:20 AM

…v4 hashes

Signed-off-by: hive-outreach-agent <outreach@hive.tunaos>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants