test(comments review): 驗證 Review comments 依嚴重度排序 #34

Merged
admin merged 3 commits from develop into master 2026-06-22 15:40:40 +00:00
Showing only changes of commit e443096325 - Show all commits
+4
View File
@@ -208,6 +208,10 @@ describe('postFindingsReview', () => {
reviewCalls[0].comments.map(c => c.path),
['app/a.js', 'app/b.js', 'app/c.js'],
);
assert.deepEqual(
reviewCalls[0].comments.map(c => c.body.match(/嚴重等級\*\*(.+)/)?.[1]),
['🔴 嚴重', '🟡 警告', '🔵 建議'],
);
assert.deepEqual(
reviewCalls[0].comments.map(c => c.new_position),
[10, 20, 30],