Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Mar 21, 2024
1 parent f7cbe2d commit 5327873
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/shell/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,27 +598,21 @@ async fn redirects_output() {

TestBuilder::new()
.command(r#"echo 1 >&1"#)
.assert_stdout(
"1\n",
)
.assert_stdout("1\n")
.assert_exit_code(0)
.run()
.await;

TestBuilder::new()
.command(r#"echo 1 >&2"#)
.assert_stderr(
"1\n",
)
.assert_stderr("1\n")
.assert_exit_code(0)
.run()
.await;

TestBuilder::new()
.command(r#"deno eval 'console.error(2)' 2>&1"#)
.assert_stdout(
"2\n",
)
.assert_stdout("2\n")
.assert_exit_code(0)
.run()
.await;
Expand Down

0 comments on commit 5327873

Please sign in to comment.