mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
test: add test for DENO_FUTURE=1 runtime API (#23065)
Add a test that asserts that certain symbols are no longer available if running with `DENO_FUTURE=1` env var. Currently only checks `window` global.
This commit is contained in:
parent
64e8c36805
commit
8b454b560a
3 changed files with 9 additions and 0 deletions
7
tests/specs/future/runtime_api/__test__.jsonc
Normal file
7
tests/specs/future/runtime_api/__test__.jsonc
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"args": "run main.js",
|
||||
"output": "main.out",
|
||||
"envs": {
|
||||
"DENO_FUTURE": "1"
|
||||
}
|
||||
}
|
1
tests/specs/future/runtime_api/main.js
Normal file
1
tests/specs/future/runtime_api/main.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log("window is", globalThis.window);
|
1
tests/specs/future/runtime_api/main.out
Normal file
1
tests/specs/future/runtime_api/main.out
Normal file
|
@ -0,0 +1 @@
|
|||
window is undefined
|
Loading…
Reference in a new issue