diff options
author | linbingquan <695601626@qq.com> | 2021-01-26 22:20:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 15:20:26 +0100 |
commit | eb30c6f510ba49fbabcd0121fde5159605eddd77 (patch) | |
tree | 2f62af87ebb6eaf2f3cbbef740b4cbc9609a4a8b /test_plugin/tests/integration_tests.rs | |
parent | 06bd692e5c4a8f66960d3919e7087530b60c20dd (diff) |
fix(test_plugin): Add README.md and make function use same data (#9128)
Diffstat (limited to 'test_plugin/tests/integration_tests.rs')
-rw-r--r-- | test_plugin/tests/integration_tests.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test_plugin/tests/integration_tests.rs b/test_plugin/tests/integration_tests.rs index 724af3d70..57499a31b 100644 --- a/test_plugin/tests/integration_tests.rs +++ b/test_plugin/tests/integration_tests.rs @@ -1,7 +1,4 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -// To run this test manually: -// cd test_plugin -// ../target/debug/deno run --unstable --allow-plugin tests/test.js debug use std::process::Command; use test_util::deno_cmd; @@ -37,7 +34,7 @@ fn basic() { println!("stderr {}", stderr); } assert!(output.status.success()); - let expected = "Hello from plugin.\nzero_copy[0]: test\nzero_copy[1]: 123\nzero_copy[2]: cba\nPlugin Sync Response: test\nHello from plugin.\nzero_copy[0]: test\nzero_copy[1]: 123\nPlugin Async Response: test\n"; + let expected = "Hello from plugin.\nzero_copy[0]: test\nzero_copy[1]: 123\nzero_copy[2]: cba\nPlugin Sync Response: test\nHello from plugin.\nzero_copy[0]: test\nzero_copy[1]: 123\nzero_copy[2]: cba\nPlugin Async Response: test\n"; assert_eq!(stdout, expected); assert_eq!(stderr, ""); } |