test(ai-review comment): 補齊留言更新與 TLS 設定覆蓋

This commit is contained in:
2026-06-22 09:05:31 +00:00
parent 8e4ea97dac
commit f0544bb758
4 changed files with 52 additions and 1 deletions
+11
View File
@@ -137,6 +137,17 @@ describe('postNewCriticalComments', () => {
assert.match(issueCalls[0], /嚴重問題/);
});
it('posts critical findings to the issue updater when inline comments are disabled', async () => {
const issueCalls = [];
await postNewCriticalComments([critical], {
postInline: null,
postIssue: async (body) => { issueCalls.push(body); },
});
assert.equal(issueCalls.length, 1);
assert.match(issueCalls[0], /嚴重問題/);
assert.match(issueCalls[0], /app\/preflight\.js:19/);
});
it('only posts for new critical findings', async () => {
const inlineCalls = [];
const issueCalls = [];