Repository navigation
test: pin remaining README 'What is live in this repo' sub-claims to code (promise audit, lane 1) #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: pin remaining README 'What is live in this repo' sub-claims to code (promise audit, lane 1) #64
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ const fixPackCheckoutSource = readFileSync(new URL("../src/fix-pack-checkout.js" | |
| const appSource = readFileSync(new URL("../src/App.jsx", import.meta.url), "utf8"); | ||
| const mainSource = readFileSync(new URL("../src/main.jsx", import.meta.url), "utf8"); | ||
| const reportsSource = readFileSync(new URL("../worker/routes/reports.js", import.meta.url), "utf8"); | ||
| const reportDataSource = readFileSync(new URL("../worker/lib/report-data.js", import.meta.url), "utf8"); | ||
| const serverEngineSource = readFileSync(new URL("../server/audit/engine.js", import.meta.url), "utf8"); | ||
| const migrationsDir = new URL("../migrations", import.meta.url); | ||
| const allMigrations = readdirSync(migrationsDir) | ||
|
|
@@ -522,3 +523,36 @@ test("README sitemap inventory claim keeps rendered repair proof separate", () = | |
| assert.match(crawlInventorySource, /CRAWLRAVEN_PUBLIC_CRAWL_PAGES|50000/, "inventory cap is 50,000 URLs"); | ||
| assert.ok(migrationHas("large_crawl_url_proofs"), "large-crawl proof stored separately"); | ||
| }); | ||
|
|
||
| test("README queued-job claim matches status polling before the private report loads", () => { | ||
| assert.match(liveSection, /Queued audit jobs backed by D1 `audit_jobs`, with status polling before the private report loads/i); | ||
| assert.match(appSource, /async function pollAuditJob/, "the UI polls job status before the report loads"); | ||
| assert.match(appSource, /\/api\/audit\/jobs\//, "polling hits the job status endpoint"); | ||
| }); | ||
|
|
||
| test("README saved-report claim matches owner email and invite-bound ownership", () => { | ||
| assert.match( | ||
| liveSection, | ||
| /Saved private report URLs backed by D1 `audit_reports`, tied to the beta owner email and invite where available/i | ||
| ); | ||
| assert.match( | ||
| reportDataSource, | ||
| /INSERT INTO audit_reports[\s\S]*owner_email[\s\S]*owner_invite_id/, | ||
| "reports are stored with owner email and invite id" | ||
| ); | ||
| assert.match(auditsSource, /owner_invite_id: access\.inviteId/, "queued audits carry the owner invite"); | ||
|
Comment on lines
+539
to
+543
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If the report insert continues naming AGENTS.md reference: AGENTS.md:L7-L7 Useful? React with 👍 / 👎. |
||
| }); | ||
|
|
||
| test("README public support, terms, and privacy pages keep no-ranking-guarantee copy", () => { | ||
| assert.match( | ||
| liveSection, | ||
| /Public `\/support`, `\/terms`, and `\/privacy` pages with no ranking guarantees/i | ||
| ); | ||
| assert.match(pagesSource, /No ranking or traffic guarantee/, "terms page carries no ranking guarantee"); | ||
| assert.match(pagesSource, /No ranking, traffic, or revenue promise is made/, "privacy page carries no ranking promise"); | ||
| assert.match( | ||
| pagesSource, | ||
| /No ranking, indexing, traffic, revenue, or search-engine outcome is promised/, | ||
|
Comment on lines
+551
to
+555
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These matches search the entire AGENTS.md reference: AGENTS.md:L7-L7 Useful? React with 👍 / 👎. |
||
| "support page carries no ranking promise" | ||
| ); | ||
| }); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the queued-audit submission path stops invoking
pollAuditJob, these assertions still pass because they only find the unused helper declaration and the URL inside that helper. The test therefore does not protect the README claim that polling occurs before loading the private report; it should also pin the call from the queued response path, ideally together with its ordering before report loading.AGENTS.md reference: AGENTS.md:L7-L7
Useful? React with 👍 / 👎.