Skip to content

Commit

Permalink
WIP testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Dec 31, 2024
1 parent e14022f commit 57f0919
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/tui/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ mod tests {
"t",
))]
#[cfg_attr(not(windows), case::custom_shell(
&["powershell".into(), "-c".into()],
&["bash".into(), "-c".into()],
"echo test | head -c 1",
"t",
))]
Expand All @@ -423,6 +423,7 @@ mod tests {
#[case] expected: &str,
) {
let bytes = run_command(shell, command, None).await.unwrap();
dbg!(&bytes); // TODO remove
let s = std::str::from_utf8(&bytes).unwrap();
assert_eq!(s, expected);
}
Expand Down

0 comments on commit 57f0919

Please sign in to comment.