Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/tests/unit/settings.test.ts')
-rw-r--r--editors/code/tests/unit/settings.test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/code/tests/unit/settings.test.ts b/editors/code/tests/unit/settings.test.ts
index 224cea5a23..2cc1b670dc 100644
--- a/editors/code/tests/unit/settings.test.ts
+++ b/editors/code/tests/unit/settings.test.ts
@@ -39,6 +39,7 @@ export async function getTests(ctx: Context) {
});
suite.addTest("Should support external variables", async () => {
+ process.env["TEST_VARIABLE"] = "test";
const envJson = {
USING_EXTERNAL_VAR: "${env:TEST_VARIABLE} test ${env:TEST_VARIABLE}",
};
@@ -48,6 +49,7 @@ export async function getTests(ctx: Context) {
const actualEnv = await substituteVariablesInEnv(envJson);
assert.deepStrictEqual(actualEnv, expectedEnv);
+ delete process.env["TEST_VARIABLE"];
});
suite.addTest("should support VSCode variables", async () => {