summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-02-07 04:44:51 +0100
committerGitHub <noreply@github.com>2024-02-07 04:44:51 +0100
commit6c15dc3f061b1d3a5b014fdbf79686ce60c605d4 (patch)
tree0b2e93001ab0e64d456727a2e1a527864b8667b3 /cli/tests
parentedab1bb92735de0d62b4cd7f46d067da92b990a0 (diff)
chore: remove op_spawn_child test (#22314)
This test is not needed because the op is not available to user code anymore. This brings number of ops exposed to user code down to 15.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs19
-rw-r--r--cli/tests/unit/ops_test.ts2
2 files changed, 1 insertions, 20 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index 654854204..56eea9c8d 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -4761,25 +4761,6 @@ fn permission_prompt_strips_ansi_codes_and_control_chars() {
console.expect("undefined");
console.write_line_raw(r#"const moveANSIStart = "\u001b[1000D";"#);
console.expect("undefined");
-
- console.write_line_raw(
- r#"Deno[Deno.internal].core.ops.op_spawn_child({
- cmd: "cat",
- args: ["file.txt"],
- clearEnv: false,
- cwd: undefined,
- env: [],
- uid: undefined,
- gid: undefined,
- stdin: "null",
- stdout: "inherit",
- stderr: "piped",
- signal: undefined,
- windowsRawArguments: false,
-}, moveANSIUp + clearANSI + moveANSIStart + prompt)"#,
- );
-
- console.expect(r#"┌ ⚠️ Deno requests run access to "cat""#);
});
}
diff --git a/cli/tests/unit/ops_test.ts b/cli/tests/unit/ops_test.ts
index aca0d655a..4a0daa0a5 100644
--- a/cli/tests/unit/ops_test.ts
+++ b/cli/tests/unit/ops_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-const EXPECTED_OP_COUNT = 16;
+const EXPECTED_OP_COUNT = 15;
Deno.test(function checkExposedOps() {
// @ts-ignore TS doesn't allow to index with symbol