fix: assertion in highlight::tests::test_parse_style test

This commit is contained in:
Andrew Hlynskyi 2021-03-17 15:52:21 +02:00
parent f3910c649e
commit 148680b3b9

View file

@ -438,6 +438,7 @@ mod tests {
assert_eq!(style.css, None);
// darkcyan is an ANSI color and is preserved
env::set_var("COLORTERM", "");
parse_style(&mut style, Value::String(DARK_CYAN.to_string()));
assert_eq!(style.ansi.foreground, Some(Color::Fixed(36)));
assert_eq!(style.css, Some("style=\'color: #0af87\'".to_string()));