nushell/crates/nu-command/tests/commands/platform/ansi_.rs

13 lines
238 B
Rust
Raw Normal View History

use nu_test_support::{nu, pipeline};
#[test]
fn test_ansi_shows_error_on_escape() {
let actual = nu!(pipeline(
r#"
ansi -e \
"#
));
assert!(actual.err.contains("no need for escape characters"))
}