summaryrefslogtreecommitdiff
path: root/tests/integration/eval_tests.rs
diff options
context:
space:
mode:
authorHasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>2024-09-03 18:14:19 +0300
committerGitHub <noreply@github.com>2024-09-03 15:14:19 +0000
commit1d04c84c8f36a88697c82cf98587a5728952314f (patch)
tree16d57ecda9e50197a2f6e8443bb6b6eebd92ec86 /tests/integration/eval_tests.rs
parentb8ed6f822174b2322fbe9f8b58698b76b5505b4a (diff)
chore: deprecate eval itests (#25382)
This PR serves as a part of #22907 . --------- Signed-off-by: David Sherret <dsherret@users.noreply.github.com> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Diffstat (limited to 'tests/integration/eval_tests.rs')
-rw-r--r--tests/integration/eval_tests.rs63
1 files changed, 0 insertions, 63 deletions
diff --git a/tests/integration/eval_tests.rs b/tests/integration/eval_tests.rs
index 3f4c6a3a6..198be3a4e 100644
--- a/tests/integration/eval_tests.rs
+++ b/tests/integration/eval_tests.rs
@@ -1,24 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
use test_util as util;
-use test_util::itest;
-
-#[test]
-fn eval_p() {
- let output = util::deno_cmd()
- .arg("eval")
- .arg("-p")
- .arg("1+2")
- .stdout_piped()
- .spawn()
- .unwrap()
- .wait_with_output()
- .unwrap();
- assert!(output.status.success());
- let stdout_str =
- util::strip_ansi_codes(std::str::from_utf8(&output.stdout).unwrap().trim());
- assert_eq!("3", stdout_str);
-}
// Make sure that snapshot flags don't affect runtime.
#[test]
@@ -43,48 +25,3 @@ fn eval_randomness() {
numbers.dedup();
assert!(numbers.len() > 1);
}
-
-itest!(eval_basic {
- args: "eval console.log(\"hello\")",
- output_str: Some("hello\n"),
-});
-
-// Ugly parentheses due to whitespace delimiting problem.
-itest!(eval_ts {
- args: "eval --quiet --ext=ts console.log((123)as(number))", // 'as' is a TS keyword only
- output_str: Some("123\n"),
-});
-
-itest!(dyn_import_eval {
- args: "eval import('./subdir/mod4.js').then(console.log)",
- output: "eval/dyn_import_eval.out",
-});
-
-// Cannot write the expression to evaluate as "console.log(typeof gc)"
-// because itest! splits args on whitespace.
-itest!(v8_flags_eval {
- args: "eval --v8-flags=--expose-gc console.log(typeof(gc))",
- output: "run/v8_flags.js.out",
-});
-
-itest!(check_local_by_default {
- args: "eval --quiet import('http://localhost:4545/subdir/type_error.ts').then(console.log);",
- output: "eval/check_local_by_default.out",
- http_server: true,
-});
-
-itest!(check_local_by_default2 {
- args: "eval --quiet import('./eval/check_local_by_default2.ts').then(console.log);",
- output: "eval/check_local_by_default2.out",
- http_server: true,
-});
-
-itest!(env_file {
- args: "eval --env=env console.log(Deno.env.get(\"ANOTHER_FOO\"))",
- output_str: Some("ANOTHER_BAR\n"),
-});
-
-itest!(env_file_missing {
- args: "eval --env=missing console.log(Deno.env.get(\"ANOTHER_FOO\"))",
- output: "eval/env_file_missing.out",
-});