forked from extern/nushell
14 lines
278 B
Rust
14 lines
278 B
Rust
|
use nu_test_support::{nu, pipeline};
|
||
|
|
||
|
#[test]
|
||
|
fn test_ansi_shows_error_on_escape() {
|
||
|
let actual = nu!(
|
||
|
cwd: "tests/fixtures/formats", pipeline(
|
||
|
r#"
|
||
|
ansi -e \
|
||
|
"#
|
||
|
));
|
||
|
|
||
|
assert!(actual.err.contains("no need for escape characters"))
|
||
|
}
|