Skip to content

Commit

Permalink
fix the test for console.log to stdout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joinhack committed Aug 23, 2024
1 parent 17be086 commit 38519f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/tests/dylib_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn test_dylib_with_exported_func() -> Result<()> {
let stdout = WritePipe::new_in_memory();
run_invoke(js_src, "foo", &stdout)?;

let output = stderr.try_into_inner().unwrap().into_inner();
let output = stdout.try_into_inner().unwrap().into_inner();
assert_eq!("Toplevel\nIn foo\n", str::from_utf8(&output)?);

Ok(())
Expand Down

0 comments on commit 38519f9

Please sign in to comment.