diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-31 22:04:08 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-31 23:14:40 -0400 |
commit | 9dcfdea241b714c676db0a92d09e5f74fbc5edf5 (patch) | |
tree | 6091a0334a3a2b462d04978e7dccd2608fa4a3d2 /src/tests | |
parent | d76dba82a7d33ded533813d17d5b5b4e581a27b6 (diff) |
Make decorations honor --width variable
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/integration_test_utils.rs | 1 | ||||
-rw-r--r-- | src/tests/test_example_diffs.rs | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/integration_test_utils.rs b/src/tests/integration_test_utils.rs index 62ce041f..1eefa33e 100644 --- a/src/tests/integration_test_utils.rs +++ b/src/tests/integration_test_utils.rs @@ -14,7 +14,6 @@ pub mod integration_test_utils { pub fn get_command_line_options() -> cli::Opt { let mut opt = cli::Opt::from_iter(Vec::<OsString>::new()); opt.theme = None; // TODO: Why does opt.theme have the value Some("")? - opt.width = Some("variable".to_string()); opt } diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index 7e214512..5f88e556 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -75,6 +75,7 @@ mod tests { // foreground ansi color codes.) let mut options = integration_test_utils::get_command_line_options(); options.theme = Some("none".to_string()); + options.width = Some("variable".to_string()); let input = ADDED_FILE_INPUT.replace("a.py", "a"); let (output, config) = integration_test_utils::get_line_of_code_from_delta(&input, 12, " class X:", options); |