mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	Make --no-paging and --no-pager work again
This commit is contained in:
		| @@ -1122,6 +1122,42 @@ fn show_all_mode() { | ||||
|         .stderr(""); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn no_paging_arg() { | ||||
|     bat() | ||||
|         .arg("--no-paging") | ||||
|         .arg("--color=never") | ||||
|         .arg("--decorations=never") | ||||
|         .arg("single-line.txt") | ||||
|         .assert() | ||||
|         .success() | ||||
|         .stdout("Single Line"); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn no_paging_short_arg() { | ||||
|     bat() | ||||
|         .arg("-P") | ||||
|         .arg("--color=never") | ||||
|         .arg("--decorations=never") | ||||
|         .arg("single-line.txt") | ||||
|         .assert() | ||||
|         .success() | ||||
|         .stdout("Single Line"); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn no_pager_arg() { | ||||
|     bat() | ||||
|         .arg("--no-pager") | ||||
|         .arg("--color=never") | ||||
|         .arg("--decorations=never") | ||||
|         .arg("single-line.txt") | ||||
|         .assert() | ||||
|         .success() | ||||
|         .stdout("Single Line"); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn plain_mode_does_not_add_nonexisting_newline() { | ||||
|     bat() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user