summaryrefslogtreecommitdiff
path: root/cli/tests/unit/websocket_test.ts
blob: f033c5ac4a308ab4318bd46712d5f8e314e2cd28 (plain)
1
2
3
4
5
6
7
8
9
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import { assertThrows } from "./test_util.ts";

Deno.test({ permissions: "none" }, function websocketPermissionless() {
  assertThrows(
    () => new WebSocket("ws://localhost"),
    Deno.errors.PermissionDenied,
  );
});