mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Add an alias denylist for expansions (#4871)
This commit is contained in:
@ -581,6 +581,17 @@ fn block_params_override() {
|
||||
assert!(actual.err.contains("variable not found"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_reuse() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
r#"alias foo = echo bob; foo; foo"#
|
||||
);
|
||||
|
||||
assert!(actual.out.contains("bob"));
|
||||
assert!(actual.err.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn block_params_override_correct() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user