nushell/tests/shell
Devyn Cairns 16cbed7d6e
Fix some of the tests in tests::shell (#12417)
# Description
Some of the tests in `tests::shell` were using `sh` unnecessarily, and
had `#[cfg(not(windows))]` when they should be testable on Windows if
`sh` is not used.

I also found that they were using `.expect()` incorrectly, under the
assumption that that would check their output, when really an
`assert_eq!` on the output is needed to do that. So these tests weren't
even really working properly before.

# User-Facing Changes
None

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-04-06 11:57:47 +08:00
..
environment test: clear parent envs to prevent leakage to tests (#9976) 2023-08-14 12:49:55 +02:00
pipeline to json -r not removing whitespaces fix (#11948) 2024-03-20 22:14:31 +01:00
mod.rs Fix some of the tests in tests::shell (#12417) 2024-04-06 11:57:47 +08:00