summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-16 09:28:35 +1000
committerGitHub <noreply@github.com>2024-09-16 09:28:35 +1000
commite4ea9be87463ce1b13e826db80452b17a9762f32 (patch)
tree6f7aa2881fb8dbf08a0ebc99dfc2c85eb3a73d15 /tests/specs
parenta666c8c9f92d87e7a3b4d4e06fdc027b3bf9663e (diff)
chore: cleanup remaining `internals.future` code (#25624)
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/future/runtime_api/__test__.jsonc12
-rw-r--r--tests/specs/future/runtime_api/main.js15
-rw-r--r--tests/specs/future/runtime_api/main.out2
-rw-r--r--tests/specs/future/runtime_api/worker.js5
4 files changed, 0 insertions, 34 deletions
diff --git a/tests/specs/future/runtime_api/__test__.jsonc b/tests/specs/future/runtime_api/__test__.jsonc
deleted file mode 100644
index a52e4299d..000000000
--- a/tests/specs/future/runtime_api/__test__.jsonc
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "steps": [
- {
- "args": "run -A --unstable-fs --config ../../../config/deno.json main.js",
- "output": "main.out"
- },
- {
- "args": "run -A --unstable-fs --config ../../../config/deno.json worker.js",
- "output": "main.out"
- }
- ]
-}
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js
deleted file mode 100644
index 8ccbf0ba0..000000000
--- a/tests/specs/future/runtime_api/main.js
+++ /dev/null
@@ -1,15 +0,0 @@
-console.log("window is", globalThis.window);
-
-try {
- new Deno.FsFile(0);
-} catch (error) {
- if (
- error instanceof TypeError &&
- error.message ===
- "`Deno.FsFile` cannot be constructed, use `Deno.open()` or `Deno.openSync()` instead."
- ) {
- console.log("Deno.FsFile constructor is illegal");
- }
-}
-
-self.close();
diff --git a/tests/specs/future/runtime_api/main.out b/tests/specs/future/runtime_api/main.out
deleted file mode 100644
index 8fef1407d..000000000
--- a/tests/specs/future/runtime_api/main.out
+++ /dev/null
@@ -1,2 +0,0 @@
-window is undefined
-Deno.FsFile constructor is illegal
diff --git a/tests/specs/future/runtime_api/worker.js b/tests/specs/future/runtime_api/worker.js
deleted file mode 100644
index eac42fe56..000000000
--- a/tests/specs/future/runtime_api/worker.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import { delay } from "@std/async/delay";
-
-const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" });
-await delay(1_000);
-worker.terminate();