test: remove tautological service token assertion
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user