mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 07:02:19 +01: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
@ -56,8 +56,11 @@ fn errors_if_non_record_input() {
|
||||
"
|
||||
));
|
||||
|
||||
assert!(only_supports
|
||||
.err
|
||||
.contains("only Record input data is supported"));
|
||||
assert!(
|
||||
only_supports
|
||||
.err
|
||||
.contains("only Record input data is supported")
|
||||
|| only_supports.err.contains("expected: record")
|
||||
);
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user