Test support fixes (#4517)

* Fix failing pipeline()

The `skip(1)` was there likely to remove the welcome message.

* Fix typo

* Fix nu! test macro to enter cwd correctly

Nushell's current working directory is determined primarily by the PWD
environment variable.
This commit is contained in:
Jakub Žádník
2022-02-18 00:23:04 +02:00
committed by GitHub
parent d4cd3f9578
commit c7c427723b
3 changed files with 9 additions and 7 deletions

View File

@ -26,8 +26,8 @@ impl Outcome {
pub fn pipeline(commands: &str) -> String {
commands
.trim()
.lines()
.skip(1)
.map(|line| line.trim())
.collect::<Vec<&str>>()
.join(" ")