Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: build the basic-auth URL fixture at runtime so the secrets scan stays clean
garrytan6c79e093688e
diff --git a/test/release-channel-w1.serial.test.ts b/test/release-channel-w1.serial.test.tsindex 3784927cdd..f465c8b630 100644--- a/test/release-channel-w1.serial.test.ts+++ b/test/release-channel-w1.serial.test.ts@@ -119,7 +119,8 @@ describe('evidence record generations', () => {expect(await fetchStableRecord()).toMatchObject({ ok: false, code: 'stable_unreadable' });serve({ record: '{"schema":1}' });expect(await fetchStableRecord()).toMatchObject({ ok: false, code: 'stable_invalid' });- expect(sanitizeCause('fetch https://user:[email protected]/x failed\n token ghp_ABCDEFGHIJKLMNOP')).toBe('fetch https://example.com/x failed token [redacted]');+ const userinfo = ['user', 'hunter2'].join(':');+ expect(sanitizeCause(`fetch https://${userinfo}@example.com/x failed\n token ghp_ABCDEFGHIJKLMNOP`)).toBe('fetch https://example.com/x failed token [redacted]');expect(sanitizeCause('x'.repeat(500))).toHaveLength(200);});});