summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-29 19:15:02 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-30 16:55:38 -0400
commit6352607f927e5ab41f3d67936b65d258a069aa3d (patch)
treed6e59cff2df2d1cf345b6534834f91cf9285a106 /src/tests
parentf5e7b066f49f1cbc7bd27e41ee43adae951066ce (diff)
Update --*-style tests
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_example_diffs.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs
index dc52e37c..4b47a0b9 100644
--- a/src/tests/test_example_diffs.rs
+++ b/src/tests/test_example_diffs.rs
@@ -204,10 +204,10 @@ mod tests {
}
#[test]
- fn test_commit_style_plain() {
+ fn test_commit_style_raw_no_decoration() {
let mut options = integration_test_utils::get_command_line_options();
- options.commit_decoration_style = "".to_string();
- // TODO: --commit-color has no effect in conjunction with --commit-style plain
+ options.commit_style = "raw".to_string();
+ options.commit_decoration_style = "omit".to_string();
let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options);
ansi_test_utils::assert_line_has_no_color(
&output,
@@ -287,10 +287,10 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e
}
#[test]
- fn test_file_style_plain() {
+ fn test_file_style_raw_no_decoration() {
let mut options = integration_test_utils::get_command_line_options();
- options.file_decoration_style = "".to_string();
- // TODO: --file-color has no effect in conjunction with --file-style plain
+ options.file_style = "raw".to_string();
+ options.file_decoration_style = "omit".to_string();
let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options);
for (i, line) in vec![
"diff --git a/src/align.rs b/src/align.rs",
@@ -379,10 +379,10 @@ src/align.rs
}
#[test]
- fn test_hunk_style_plain() {
+ fn test_hunk_style_raw_no_decoration() {
let mut options = integration_test_utils::get_command_line_options();
- options.hunk_header_decoration_style = "".to_string();
- // TODO: --hunk-color has no effect in conjunction with --hunk-style plain
+ options.hunk_header_style = "raw".to_string();
+ options.hunk_header_decoration_style = "omit".to_string();
let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options);
ansi_test_utils::assert_line_has_no_color(
&output,