From 4fa4a8bbd1aefba94d328b2341a15d2bf3550d03 Mon Sep 17 00:00:00 2001 From: -Puter <22245429+puterhimself@users.noreply.github.com> Date: Mon, 13 Jul 2026 19:23:08 +0530 Subject: [PATCH] test: remove tautological service token assertion --- scripts/user-profile.test.ts | 11 ----------- 1 file changed, 11 deletions(-) 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");