summaryrefslogtreecommitdiff
path: root/tests/unit/os_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-16 21:39:37 +0100
committerGitHub <noreply@github.com>2024-09-16 21:39:37 +0100
commit62e952559f600e72d7498c9b12f906cb0b1ba150 (patch)
tree6dbcce6592973358ef4bf6341888b0bbbdb98cc5 /tests/unit/os_test.ts
parente0b9c745c15720914f14996bf357d5b375e2dbd8 (diff)
refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508)
This makes the permission system more versatile.
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],