From 7f15126f23d97f20a4fb33e43136cd4d13825863 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 10 Jun 2023 11:09:45 -0400 Subject: chore(tests): test_util - Add `PathRef` (#19450) This adds a new `PathRef` struct to test_util for making it easier to work with paths in test code. I'm going to expand on this more in the future. --- cli/tests/integration/check_tests.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/tests/integration/check_tests.rs') diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs index 84ed92990..41c568ad3 100644 --- a/cli/tests/integration/check_tests.rs +++ b/cli/tests/integration/check_tests.rs @@ -204,10 +204,10 @@ fn typecheck_core() { format!( "import \"{}\";", deno_core::resolve_path( - util::root_path() - .join("core/lib.deno_core.d.ts") - .to_str() - .unwrap(), + &util::root_path() + .join("core") + .join("lib.deno_core.d.ts") + .to_string(), &std::env::current_dir().unwrap() ) .unwrap() @@ -215,7 +215,7 @@ fn typecheck_core() { ) .unwrap(); - let args = vec!["run".to_string(), test_file.to_string_lossy().into_owned()]; + let args = vec!["run".to_string(), test_file.to_string()]; let output = context.new_command().args_vec(args).split_output().run(); println!("stdout: {}", output.stdout()); -- cgit v1.2.3