summaryrefslogtreecommitdiff
path: root/cli/tests/integration/task_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/task_tests.rs')
-rw-r--r--cli/tests/integration/task_tests.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/tests/integration/task_tests.rs b/cli/tests/integration/task_tests.rs
index f090deff5..45b091b08 100644
--- a/cli/tests/integration/task_tests.rs
+++ b/cli/tests/integration/task_tests.rs
@@ -4,6 +4,7 @@
// These tests are intended to only test integration.
use test_util::env_vars_for_npm_tests;
+use test_util::TestContext;
itest!(task_no_args {
args: "task -q --config task/deno_json/deno.json",
@@ -53,12 +54,12 @@ itest!(task_non_existent {
#[test]
fn task_emoji() {
// this bug only appears when using a pty/tty
- test_util::with_pty(
- &["task", "--config", "task/deno_json/deno.json", "echo_emoji"],
- |mut console| {
+ TestContext::default()
+ .new_command()
+ .args_vec(["task", "--config", "task/deno_json/deno.json", "echo_emoji"])
+ .with_pty(|mut console| {
console.expect("Task echo_emoji echo šŸ”„\r\nšŸ”„");
- },
- );
+ });
}
itest!(task_boolean_logic {