diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-10 00:28:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 00:28:17 +0200 |
commit | 2db381eba9768acf855219ec9560e20a62659994 (patch) | |
tree | c06a693b804c9a2bc3bf76f7ac66a02f57499ccb /cli/tests/integration/mod.rs | |
parent | 7600a456dfc880a1eeff230f3f34c87978fedc58 (diff) |
feat: add experimental WebSocketStream API (#10365)
This commit adds the experimental WebSocketStream API when
using the --unstable flag.
The explainer for the API can be found here:
https://github.com/ricea/websocketstream-explainer
Diffstat (limited to 'cli/tests/integration/mod.rs')
-rw-r--r-- | cli/tests/integration/mod.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cli/tests/integration/mod.rs b/cli/tests/integration/mod.rs index 938d40125..76bda70a7 100644 --- a/cli/tests/integration/mod.rs +++ b/cli/tests/integration/mod.rs @@ -643,6 +643,27 @@ fn websocket() { assert!(status.success()); } +#[test] +fn websocketstream() { + let _g = util::http_server(); + + let script = util::tests_path().join("websocketstream_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()); +} + #[cfg(not(windows))] #[test] fn set_raw_should_not_panic_on_no_tty() { |