From 728b216dcce82889c1c965d73373b01aef344886 Mon Sep 17 00:00:00 2001 From: CRT Date: Thu, 15 Oct 2026 22:51:31 +0800 Subject: [PATCH] tests: the rtdn email fixture keeps the user-data line out of the service-account comment's window --- tests/scan.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scan.test.ts b/tests/scan.test.ts index 2b81bc7..0bc0606 100644 --- a/tests/scan.test.ts +++ b/tests/scan.test.ts @@ -396,9 +396,9 @@ describe('monorepo: username accounts without email, plugins in apps/native/node for (const s of yes) expect({ s, hit: SIGNALS.email.test(s) }).toEqual({ s, hit: true }); for (const s of no) expect({ s, hit: SIGNALS.email.test(s) }).toEqual({ s, hit: false }); // multi-line: the identity is named in the doc comment above (a game apps/server/src/iap/rtdn.ts) - const rtdn = 'export interface RtdnAuthConfig {\n /** OIDC audience of the push subscription. */\n audience: string | null;\n /** Push service account email the token must carry. */\n email: string | null;\n}\nconst body = { email: form.email };'; + const rtdn = 'export interface RtdnAuthConfig {\n /** OIDC audience of the push subscription. */\n audience: string | null;\n /** Push service account email the token must carry. */\n email: string | null;\n}\n\nexport async function signUp(form: Form) {\n // the sign-up request\n const body = { email: form.email };'; const src = [{ path: 'rtdn.ts', text: rtdn }]; - expect(userFacing(src, [{ file: 'rtdn.ts', line: 5 }, { file: 'rtdn.ts', line: 7 }]).map(h => h.line)).toEqual([7]); + expect(userFacing(src, [{ file: 'rtdn.ts', line: 5 }, { file: 'rtdn.ts', line: 10 }]).map(h => h.line)).toEqual([10]); }); test('built output is low trust', () => { expect(isBuilt('apps/native/web/bundle/routes-AbC12345.js')).toBe(true);