1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-07 13:41:14 +00:00

updated integration_tests.rs

This commit is contained in:
Oliver looney 2024-01-30 19:29:28 +00:00
parent 7f12989127
commit a8d07333e9
No known key found for this signature in database

View File

@ -924,7 +924,6 @@ fn pager_failed_to_parse() {
#[test] #[test]
fn pager_set_terminal_title() { fn pager_set_terminal_title() {
mocked_pagers::with_mocked_versions_of_more_and_most_in_path(|| {
bat() bat()
.env("PAGER", mocked_pagers::from("echo pager-output")) .env("PAGER", mocked_pagers::from("echo pager-output"))
.arg("--paging=always") .arg("--paging=always")
@ -932,10 +931,7 @@ fn pager_set_terminal_title() {
.arg("test.txt") .arg("test.txt")
.assert() .assert()
.success() .success()
.stdout( .stdout(predicate::str::contains("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize());
predicate::str::contains("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize(),
);
});
} }
#[test] #[test]