summaryrefslogtreecommitdiff
path: root/src/tests/test_example_diffs.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-12-31 10:20:22 -0500
committerDan Davison <dandavison7@gmail.com>2020-12-31 10:31:56 -0500
commit57d3f65e2e08c3abc5147fd0a0d115f8fab1b47d (patch)
tree76e25872372872a9a35a125d0b35bbc7b15d6c07 /src/tests/test_example_diffs.rs
parenta499d46917dd2cf37336b93d6df5e29f0d9eead7 (diff)
Add styles for file path and line number in hunk header
Fixes #481
Diffstat (limited to 'src/tests/test_example_diffs.rs')
-rw-r--r--src/tests/test_example_diffs.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs
index b3a8bf3..51c713f 100644
--- a/src/tests/test_example_diffs.rs
+++ b/src/tests/test_example_diffs.rs
@@ -1005,7 +1005,7 @@ src/align.rs
#[test]
fn test_hunk_header_style_with_file() {
let config = integration_test_utils::make_config_from_args(&[
- "--file-style",
+ "--hunk-header-file-style",
"yellow",
"--hunk-header-style",
"file line-number red",
@@ -1034,7 +1034,7 @@ src/align.rs:71: impl<'a> Alignment<'a> { │
#[test]
fn test_hunk_header_style_with_file_no_frag() {
let config = integration_test_utils::make_config_from_args(&[
- "--file-style",
+ "--hunk-header-file-style",
"yellow",
"--hunk-header-style",
"file line-number red",
@@ -1079,6 +1079,8 @@ src/delta.rs:1: │
let config = integration_test_utils::make_config_from_args(&[
"--hunk-header-style",
"line-number normal",
+ "--hunk-header-line-number-style",
+ "normal",
"--hunk-header-decoration-style",
"omit",
]);