mirror of
https://github.com/nushell/nushell
synced 2024-12-25 12:33:17 +00:00
Update error message test for split-by
The now deprecated split-by command produces different error messages depending on whether the input is a value or a stream. The `errors_if_non_record_input` test used to check whether the error message produced was the one produced when the input is a value. This commit updates this test so that is also accepts the error message produced when the input is a stream.
This commit is contained in:
parent
fb65d5e721
commit
841a63f6fb
1 changed files with 6 additions and 3 deletions
|
@ -56,8 +56,11 @@ fn errors_if_non_record_input() {
|
||||||
"
|
"
|
||||||
));
|
));
|
||||||
|
|
||||||
assert!(only_supports
|
assert!(
|
||||||
|
only_supports
|
||||||
.err
|
.err
|
||||||
.contains("only Record input data is supported"));
|
.contains("only Record input data is supported")
|
||||||
|
|| only_supports.err.contains("expected: record")
|
||||||
|
);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue