diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2020-09-05 16:39:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 10:39:25 -0400 |
commit | 8c880d32612c562795d8cd539c662a0cfdcbb8c8 (patch) | |
tree | 1d4df2ffb263860d0cd227cbe5dce745a5e3e2a7 /cli/tests/integration_tests.rs | |
parent | 34e98fa59cd70f7ce64e587bef41fac536a3076b (diff) |
feat: Implement WebSocket API (#7051)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 08c68a9ae..94d410dcc 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -3205,6 +3205,27 @@ async fn inspector_runtime_evaluate_does_not_crash() { } #[test] +fn websocket() { + let _g = util::http_server(); + + let script = util::tests_path().join("websocket_test.ts"); + let root_ca = util::tests_path().join("tls/RootCA.pem"); + let status = util::deno_cmd() + .arg("test") + .arg("--unstable") + .arg("--allow-net") + .arg("--cert") + .arg(root_ca) + .arg(script) + .spawn() + .unwrap() + .wait() + .unwrap(); + + assert!(status.success()); +} + +#[test] fn exec_path() { let output = util::deno_cmd() .current_dir(util::root_path()) |