Skip to content

Commit d59c890

Browse files
cdervclaude
andcommitted
Fix validJsonWithFields signature in docs and add trailing newline
The llm-docs documented validJsonWithFields with fields: string[] but the actual signature takes Record<string, unknown>. Also adds missing trailing newline to project-prepost.test.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7d06bfd commit d59c890

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

llm-docs/testing-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ ensureCssRegexMatches(file: string, matches: (string | RegExp)[], noMatches?: (s
232232
// Check HTML elements exist or don't exist (CSS selectors)
233233
ensureHtmlElements(file: string, noElements: string[], elements: string[])
234234

235-
// Verify JSON structure has expected fields
236-
validJsonWithFields(file: string, fields: string[])
235+
// Verify JSON structure has expected fields (parses JSON, compares values with deep equality)
236+
validJsonWithFields(file: string, fields: Record<string, unknown>)
237237

238238
// Check output message at specific log level
239239
printsMessage(options: { level: string, regex: RegExp })

tests/smoke/project/project-prepost.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ testQuartoCmd(
131131
}
132132
},
133133
},
134-
);
134+
);

0 commit comments

Comments
 (0)