mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
tests: fix test to show that NO_COLOR=1
results in no color
This reproduces the problem in reported in #5041.
This commit is contained in:
parent
8c6024c71f
commit
23f9cc7a4f
1 changed files with 4 additions and 3 deletions
|
@ -437,11 +437,12 @@ fn test_color_config() {
|
|||
"###);
|
||||
|
||||
// Test that NO_COLOR does NOT override the request for color in the config file
|
||||
test_env.add_env_var("NO_COLOR", "");
|
||||
test_env.add_env_var("NO_COLOR", "1");
|
||||
let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "commit_id"]);
|
||||
// TODO: Should have color
|
||||
insta::assert_snapshot!(stdout, @r###"
|
||||
[1m[38;5;2m@[0m [38;5;4m230dd059e1b059aefc0da06a2e5a7dbf22362f22[39m
|
||||
[1m[38;5;14m◆[0m [38;5;4m0000000000000000000000000000000000000000[39m
|
||||
[1m[m@[0m [m230dd059e1b059aefc0da06a2e5a7dbf22362f22[m
|
||||
[1m[m◆[0m [m0000000000000000000000000000000000000000[m
|
||||
"###);
|
||||
|
||||
// Test that per-repo config overrides the user config.
|
||||
|
|
Loading…
Reference in a new issue