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}`); } }