From a8d07333e9391c75406e9ac2d03d80f70d32e8fb Mon Sep 17 00:00:00 2001 From: Oliver looney Date: Tue, 30 Jan 2024 19:29:28 +0000 Subject: [PATCH] updated integration_tests.rs --- tests/integration_tests.rs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index df9969b4..dd670399 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -924,18 +924,14 @@ fn pager_failed_to_parse() { #[test] fn pager_set_terminal_title() { - mocked_pagers::with_mocked_versions_of_more_and_most_in_path(|| { - 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(), - ); - }); + 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]