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 @@ -922,18 +922,6 @@ fn pager_failed_to_parse() { .stderr(predicate::str::contains("Could not parse pager command")); } -#[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() { @@ -948,6 +936,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()