diff --git a/src/tests/test_commandline.rs b/src/tests/test_commandline.rs index d2019e752b..9f094f5b88 100644 --- a/src/tests/test_commandline.rs +++ b/src/tests/test_commandline.rs @@ -11,7 +11,7 @@ fn commandline_test_append() -> TestResult { "commandline --replace '0👩‍❤️‍👩2'\n\ commandline --cursor '2'\n\ commandline --append 'ab'\n\ - commandline\n\ + print (commandline)\n\ commandline --cursor", "0👩‍❤️‍👩2ab\n\ 2", @@ -24,7 +24,7 @@ fn commandline_test_insert() -> TestResult { "commandline --replace '0👩‍❤️‍👩2'\n\ commandline --cursor '2'\n\ commandline --insert 'ab'\n\ - commandline\n\ + print (commandline)\n\ commandline --cursor", "0👩‍❤️‍👩ab2\n\ 4", @@ -36,7 +36,7 @@ fn commandline_test_replace() -> TestResult { run_test( "commandline --replace '0👩‍❤️‍👩2'\n\ commandline --replace 'ab'\n\ - commandline\n\ + print (commandline)\n\ commandline --cursor", "ab\n\ 2", diff --git a/tests/hooks/mod.rs b/tests/hooks/mod.rs index 1a17b2187e..93b1bbdd7a 100644 --- a/tests/hooks/mod.rs +++ b/tests/hooks/mod.rs @@ -329,13 +329,13 @@ fn pre_execution_block_preserve_env_var() { fn pre_execution_commandline() { let inp = &[ &pre_execution_hook_code(r#"{ let-env repl_commandline = (commandline) }"#), - "echo foo!; $env.repl_commandline", + "$env.repl_commandline", ]; let actual_repl = nu!(cwd: "tests/hooks", nu_repl_code(inp)); assert_eq!(actual_repl.err, ""); - assert_eq!(actual_repl.out, "foo!echo foo!; $env.repl_commandline"); + assert_eq!(actual_repl.out, "$env.repl_commandline"); } #[test]