Improve audit pipeline and outreach review
This commit is contained in:
@@ -228,6 +228,16 @@ test("audits.getDetail returns audit + lead context with null-safe lead lookup",
|
||||
/return\s*{[\s\S]*audit,[\s\S]*lead,[\s\S]*sourceSummaries:[\s\S]*}/,
|
||||
"getDetail should return audit, lead, and sourceSummaries.",
|
||||
);
|
||||
hasPattern(
|
||||
getDetailSource,
|
||||
/query\("auditFindings"\)[\s\S]*withIndex\("by_auditId"[\s\S]*eq\("auditId",\s*audit\._id\)[\s\S]*take\(DETAIL_EVIDENCE_LIMIT\)/,
|
||||
"getDetail should load persisted findings by auditId.",
|
||||
);
|
||||
hasPattern(
|
||||
getDetailSource,
|
||||
/return\s*{[\s\S]*audit,[\s\S]*lead,[\s\S]*findings,[\s\S]*sourceSummaries:[\s\S]*}/,
|
||||
"getDetail should return top-level findings for the detail UI.",
|
||||
);
|
||||
hasPattern(
|
||||
sourceFile.getFullText(),
|
||||
/export const getDetail = query\(/,
|
||||
|
||||
Reference in New Issue
Block a user