From 59a76be3c4801988db9a93a6f621c390ac538d72 Mon Sep 17 00:00:00 2001 From: kdletters Date: Tue, 1 Sep 2026 19:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E5=BE=AE=E4=BF=A1=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E9=9D=99=E6=80=81=E6=96=AD=E8=A8=80=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容认证边界测试被格式化拆行后的源码匹配 --- scripts/check-native-shells.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-native-shells.mjs b/scripts/check-native-shells.mjs index 9cf61e5a8..8ab8c5231 100644 --- a/scripts/check-native-shells.mjs +++ b/scripts/check-native-shells.mjs @@ -4552,7 +4552,7 @@ function assertWechatAuthFailureBoundaries() { "expect(console.error).toHaveBeenCalledWith(\n '[web-view] bind phone auth declined'", 'expect(console.error.mock.calls.flat()).not.toContain(authDeclined)', ]) { - if (!authTestSource.includes(snippet)) { + if (!sourceIncludesSnippet(authTestSource, snippet)) { throw new Error(`wechat auth boundary test must include ${snippet}`); } }