summaryrefslogtreecommitdiff
path: root/tests/unit/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/os_test.ts')
-rw-r--r--tests/unit/os_test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/os_test.ts b/tests/unit/os_test.ts
index 4f760ecf8..a70796505 100644
--- a/tests/unit/os_test.ts
+++ b/tests/unit/os_test.ts
@@ -79,7 +79,9 @@ Deno.test(
) => {
const src = `
console.log(
- ${JSON.stringify(Object.keys(expectedEnv))}.map(k => Deno.env.get(k))
+ ${
+ JSON.stringify(Object.keys(expectedEnv))
+ }.map(k => Deno.env.get(k) ?? null)
)`;
const { success, stdout } = await new Deno.Command(Deno.execPath(), {
args: ["eval", src],