From 38519f9952c3d103a120742d45f48384bea7c639 Mon Sep 17 00:00:00 2001 From: "Join.G" Date: Fri, 23 Aug 2024 21:48:11 +0800 Subject: [PATCH] fix the test for console.log to stdout. --- crates/cli/tests/dylib_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/tests/dylib_test.rs b/crates/cli/tests/dylib_test.rs index 2ae5bb06..fb3f8828 100644 --- a/crates/cli/tests/dylib_test.rs +++ b/crates/cli/tests/dylib_test.rs @@ -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(())