mirror of
https://github.com/nushell/nushell.git
synced 2025-03-11 05:58:15 +01:00
Fix failing test when using man version 2.13.0 (#15123)
The test added in #15115 fails on systems using later versions of `man` (2.13.0 triggers the issue, at least). This updates the test to ignore formatting characters. Thanks to @fdncred and @blindFS for the debugging assistance.
This commit is contained in:
parent
2cb059146b
commit
2b8fb4fe00
@ -1025,7 +1025,7 @@ mod tests {
|
||||
.to_string();
|
||||
|
||||
#[cfg(not(windows))]
|
||||
assert!(hover_text.starts_with("SLEEP(1)"));
|
||||
assert!(hover_text.contains("SLEEP"));
|
||||
#[cfg(windows)]
|
||||
assert!(hover_text.starts_with("NAME\r\n Start-Sleep"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user