-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
085b111
commit 1dae2e4
Showing
3 changed files
with
51 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/specs/permission/process_env_permissions/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"tempDir": true, | ||
"tests": { | ||
"deno_env_wildcard_tests": { | ||
"envs": { | ||
"MYAPP_HELLO": "Hello\tworld,", | ||
"MYAPP_GOODBYE": "farewell", | ||
"OTHER_VAR": "ignore" | ||
}, | ||
"steps": [ | ||
{ | ||
"args": "run --allow-env=MYAPP_* main.js", | ||
"output": "Hello\tworld,\nfarewell\n" | ||
}, | ||
{ | ||
"args": "run --allow-env=*_HELLO,*_GOODBYE main.js", | ||
"output": "Hello\tworld,\nfarewell\n" | ||
}, | ||
{ | ||
"args": "run --allow-env=* main.js", | ||
"output": "Hello\tworld,\nfarewell\n" | ||
}, | ||
{ | ||
"args": "run --allow-env main.js", | ||
"output": "Hello\tworld,\nfarewell\n" | ||
}, | ||
{ | ||
"args": "run --allow-env=MYAPP_HELLO,MYAPP_GOODBYE main.js", | ||
"output": "Hello\tworld,\nfarewell\n" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
console.log(Deno.env.get("MYAPP_HELLO")); | ||
console.log(Deno.env.get("MYAPP_GOODBYE")); |