diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-27 15:26:08 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-27 15:58:47 -0400 |
commit | 284392c7580e082070e0b9c05d712da65d52c943 (patch) | |
tree | 798df4207d09aa1d600345c9a455e579d9364ddc /src/tests | |
parent | 327792f4bc67d05d03785fe127df9990d2ffce37 (diff) |
Refactor: Create color and theme modules, consolidate style code
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/ansi_test_utils.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/ansi_test_utils.rs b/src/tests/ansi_test_utils.rs index 04e0eeda..82a5aef6 100644 --- a/src/tests/ansi_test_utils.rs +++ b/src/tests/ansi_test_utils.rs @@ -3,7 +3,8 @@ pub mod ansi_test_utils { use ansi_term; use console::strip_ansi_codes; - use crate::config::{color_from_rgb_or_ansi_code, Config}; + use crate::color; + use crate::config::Config; use crate::paint; use crate::style::Style; @@ -23,7 +24,7 @@ pub mod ansi_test_utils { assert!(strip_ansi_codes(line).starts_with(expected_prefix)); assert!(has_foreground_color( line, - color_from_rgb_or_ansi_code(expected_color, config.true_color) + color::color_from_rgb_or_ansi_code(expected_color, config.true_color) )); } |