diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-17 22:46:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 22:46:15 -0500 |
commit | c213ad380f349dee1f65e6d9a9f7a8fa669b2af2 (patch) | |
tree | 9265e433c2691bf39c699617b87f755c1d025908 /cli/tests/integration/fmt_tests.rs | |
parent | 4a2d8c4bbd20cc282b4df42fe5da6414447315e0 (diff) |
chore: combine `TestCommandBuilder` with `DenoCmd` (#21248)
Diffstat (limited to 'cli/tests/integration/fmt_tests.rs')
-rw-r--r-- | cli/tests/integration/fmt_tests.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs index edebedc27..b8c77c529 100644 --- a/cli/tests/integration/fmt_tests.rs +++ b/cli/tests/integration/fmt_tests.rs @@ -31,7 +31,7 @@ fn fmt_test() { let output = context .new_command() - .cwd(&testdata_fmt_dir) + .current_dir(&testdata_fmt_dir) .args_vec(vec![ "fmt".to_string(), format!( @@ -50,7 +50,7 @@ fn fmt_test() { // Check without ignore. let output = context .new_command() - .cwd(&testdata_fmt_dir) + .current_dir(&testdata_fmt_dir) .args_vec(vec![ "fmt".to_string(), "--check".to_string(), @@ -66,7 +66,7 @@ fn fmt_test() { // Format the source file. let output = context .new_command() - .cwd(&testdata_fmt_dir) + .current_dir(&testdata_fmt_dir) .args_vec(vec![ "fmt".to_string(), badly_formatted_js.to_string(), @@ -95,7 +95,7 @@ fn fmt_stdin_syntax_error() { .current_dir(util::testdata_path()) .arg("fmt") .arg("-") - .set_stdin_text("import { example }") + .stdin_text("import { example }") .split_output() .run(); assert!(output.stdout().is_empty()); @@ -141,7 +141,7 @@ fn fmt_auto_ignore_git_and_node_modules() { let output = context .new_command() - .cwd(t) + .current_dir(t) .env("NO_COLOR", "1") .args("fmt") .run(); |