From a9ac7857be5a26247eca25a1e87bcf90f67109eb Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 17 Jun 2026 06:50:56 +0000 Subject: [PATCH] =?UTF-8?q?test(comments):=20=E6=94=B9=E5=96=84=E5=9A=B4?= =?UTF-8?q?=E9=87=8D=E5=95=8F=E9=A1=8C=E7=95=99=E8=A8=80=E6=96=B7=E8=A8=80?= =?UTF-8?q?=E5=8F=AF=E8=AE=80=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comments.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/comments.test.js b/app/comments.test.js index 9632545..78b0e0f 100644 --- a/app/comments.test.js +++ b/app/comments.test.js @@ -163,6 +163,7 @@ describe('postNewCriticalComments', () => { }); it('handles multiple criticals, posting inline where possible and degrading the rest', async () => { + const criticalCommentPattern = /嚴重問題/; const inlineCalls = []; const issueCalls = []; const findings = [ @@ -181,6 +182,6 @@ describe('postNewCriticalComments', () => { assert.equal(inlineCalls[0].path, 'app/a.js'); assert.equal(inlineCalls[0].line, 10); assert.equal(issueCalls.length, 2); - assert.ok(issueCalls.every(b => /嚴重問題/.test(b))); + assert.ok(issueCalls.every(b => criticalCommentPattern.test(b))); }); });