summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorMuthu Kumar <muthukumar@thefeathers.in>2021-06-22 06:33:00 +0530
committerGitHub <noreply@github.com>2021-06-22 03:03:00 +0200
commit388274e02ea7e054f0bbbe4f863dc32447c5971d (patch)
tree2cc921c767cfd0b7a6c9cc967c090d52cd713c6f /cli/tests
parent68c519d06161920d21afc2e40db11230af62baee (diff)
fix: move stable/unstable types/APIs to their correct places (#10880)
- Moved ppid and memoryUsage types from deno.unstable to deno.ns. - Moved sleepSync to unstable object, shutdown to stable object.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs6
-rw-r--r--cli/tests/unstable_disabled_ts2551.out10
-rw-r--r--cli/tests/unstable_ts2551.ts1
3 files changed, 0 insertions, 17 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 2cad5a44c..ce4c8d7d8 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -3976,12 +3976,6 @@ console.log("finish");
output: "unstable_enabled_js.out",
});
- itest!(unstable_disabled_ts2551 {
- args: "run --reload unstable_ts2551.ts",
- exit_code: 1,
- output: "unstable_disabled_ts2551.out",
- });
-
itest!(unstable_worker {
args: "run --reload --unstable --quiet --allow-read unstable_worker.ts",
output: "unstable_worker.ts.out",
diff --git a/cli/tests/unstable_disabled_ts2551.out b/cli/tests/unstable_disabled_ts2551.out
deleted file mode 100644
index bf8e6872b..000000000
--- a/cli/tests/unstable_disabled_ts2551.out
+++ /dev/null
@@ -1,10 +0,0 @@
-[WILDCARD]
-error: TS2551 [ERROR]: Property 'ppid' does not exist on type 'typeof Deno'. 'Deno.ppid' is an unstable API. Did you forget to run with the '--unstable' flag, or did you mean 'pid'?
-console.log(Deno.ppid);
- ~~~~
- at [WILDCARD]cli/tests/unstable_ts2551.ts:1:18
-
- 'pid' is declared here.
- export const pid: number;
- ~~~
- at asset:///lib.deno.ns.d.ts:[WILDCARD]
diff --git a/cli/tests/unstable_ts2551.ts b/cli/tests/unstable_ts2551.ts
deleted file mode 100644
index c9016c56c..000000000
--- a/cli/tests/unstable_ts2551.ts
+++ /dev/null
@@ -1 +0,0 @@
-console.log(Deno.ppid);