test(ai-review comment): 補齊留言更新與 TLS 設定覆蓋
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user