MCPcopy Create free account
hub / github.com/Noumena-Network/code / restoreEnvVar

Function restoreEnvVar

src/services/oauth/identityClient.test.ts:13–19  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

11const originalNoumenaPlatformBaseUrl = process.env.NOUMENA_PLATFORM_BASE_URL
12
13function restoreEnvVar(key: string, value: string | undefined): void {
14 if (value === undefined) {
15 delete process.env[key]
16 } else {
17 process.env[key] = value
18 }
19}
20
21function resetCallsAndEnv(): void {
22 axiosGetCalls.length = 0

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected