From 74e6eb14dd4697ba8bf52e044af0e7dfef49e441 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 23 Jan 2020 16:32:52 -0500 Subject: update readmes (#3765) --- cli/js/net_test.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/js') diff --git a/cli/js/net_test.ts b/cli/js/net_test.ts index e4d0be81f..7f5334df3 100644 --- a/cli/js/net_test.ts +++ b/cli/js/net_test.ts @@ -1,5 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { testPerm, assert, assertEquals } from "./test_util.ts"; +import { runIfMain } from "../../std/testing/mod.ts"; testPerm({ net: true }, function netListenClose(): void { const listener = Deno.listen({ hostname: "127.0.0.1", port: 4500 }); @@ -239,3 +240,5 @@ testPerm({ net: true }, async function netDoubleCloseWrite() { conn.close(); }); */ + +runIfMain(import.meta); -- cgit v1.2.3