fix(ai-review comment): 顯示審查問題原因

This commit is contained in:
2026-06-22 10:27:33 +00:00
parent bbd7570a5b
commit f83a2034a8
7 changed files with 23 additions and 6 deletions
+2
View File
@@ -68,6 +68,8 @@ describe('buildAnalysisPrompt', () => {
it('embeds the role name in the JSON contract and persona/body', () => {
const prompt = buildAnalysisPrompt(parseRoleFile(SAMPLE));
assert.match(prompt, /"role": "Tester"/);
assert.match(prompt, /"problem":/);
assert.match(prompt, /有問題的原因/);
assert.match(prompt, /冷靜嚴謹/);
assert.match(prompt, /審查重點:邊界與空值/);
assert.match(prompt, /只回傳 JSON 陣列/);