Merge pull request #996 from ahlinc/fix/test-precondition

fix: assertion in highlight::tests::test_parse_style test
This commit is contained in:
Max Brunsfeld 2021-03-18 10:25:02 -07:00 committed by GitHub
commit a440e11197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()));