diff options
author | Oliver looney <oliverjlooney@gmail.com> | 2024-02-11 22:43:07 +0000 |
---|---|---|
committer | Oliver looney <oliverjlooney@gmail.com> | 2024-02-11 22:43:07 +0000 |
commit | 8a51172b119d95fd5984ad46639307140b675c1b (patch) | |
tree | bc1ae9fc7f0c35d1f8649b4ba0ec867fe69857ef | |
parent | 02077db53e36b157e1a12496b8315c77514de0a0 (diff) |
simplified basic_set_terminal_title
-rw-r--r-- | tests/integration_tests.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 1ba51d19..f1a22d9d 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -923,18 +923,6 @@ fn pager_failed_to_parse() { } #[test] -fn pager_set_terminal_title() { - bat() - .env("PAGER", mocked_pagers::from("echo pager-output")) - .arg("--paging=always") - .arg("--set-terminal-title") - .arg("test.txt") - .assert() - .success() - .stdout(predicate::str::contains("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize()); -} - -#[test] #[serial] fn env_var_bat_paging() { mocked_pagers::with_mocked_versions_of_more_and_most_in_path(|| { @@ -949,6 +937,18 @@ fn env_var_bat_paging() { } #[test] +fn basic_set_terminal_title() { + bat() + .arg("--paging=always") + .arg("--set-terminal-title") + .arg("test.txt") + .assert() + .success() + .stdout("\u{1b}]0;bat: test.txt\x07hello world\n") + .stderr(""); +} + +#[test] fn diagnostic_sanity_check() { bat() .arg("--diagnostic") |