test: remove tautological service token assertion

This commit is contained in:
-Puter
2026-07-13 19:23:08 +05:30
parent d71b7ede08
commit 4fa4a8bbd1

View File

@@ -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");