Merge pull request #996 from ahlinc/fix/test-precondition
fix: assertion in highlight::tests::test_parse_style test
This commit is contained in:
commit
a440e11197
1 changed files with 1 additions and 0 deletions
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue