diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-30 14:12:34 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:55:38 -0400 |
commit | 09d8df02374b983cd061e19454d92f855a2542cb (patch) | |
tree | 2a227d2086cd7cd26443ce8dd7ddc0ccd22e0b2f /src/tests | |
parent | 7e65f14cbe2ec9ec42c5e7ebbdf299908afa031e (diff) |
Add failing test of --commit-style raw
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_example_diffs.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index eb2ccfc6..f25440c1 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -259,6 +259,26 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │ } #[test] + fn test_commit_style_box_raw() { + let mut options = integration_test_utils::get_command_line_options(); + options.commit_style = "raw".to_string(); + options.commit_decoration_style = "box".to_string(); + let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options); + ansi_test_utils::assert_line_has_no_color( + &output, + 1, + "commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │", + ); + let output = strip_ansi_codes(&output); + assert!(output.contains( + "\ +────────────────────────────────────────────────┐ +commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │ +────────────────────────────────────────────────┴─" + )); + } + + #[test] fn test_commit_style_underline() { let mut options = integration_test_utils::get_command_line_options(); options.commit_style = "yellow".to_string(); |