diff --git a/scripts/user-profile.test.ts b/scripts/user-profile.test.ts index 037af8c..f77c41c 100644 --- a/scripts/user-profile.test.ts +++ b/scripts/user-profile.test.ts @@ -311,16 +311,5 @@ async function runFetchUserProfileAfterBodyConsumed(): Promise<{ assert.match(compose, /SERVICE_TOKEN:\s*\$\{SERVICE_TOKEN:-\}/, "compose SERVICE_TOKEN default must be explicitly empty"); } -// Config's serviceToken fallback is empty when SERVICE_TOKEN is unset. -{ - const savedServiceToken = process.env.SERVICE_TOKEN; - try { - delete process.env.SERVICE_TOKEN; - assert.equal(process.env.SERVICE_TOKEN ?? "", "", "unset SERVICE_TOKEN must resolve to an empty config default"); - } finally { - if (savedServiceToken === undefined) delete process.env.SERVICE_TOKEN; - else process.env.SERVICE_TOKEN = savedServiceToken; - } -} console.log("user-profile: all assertions passed");