From a4bb8bab44cc778e6e455f19fdae9f3e4acc809b Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Sun, 9 Feb 2020 05:15:59 +0900 Subject: remove non-null assertion operator from std (part2) (#3927) --- std/http/file_server_test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'std/http/file_server_test.ts') diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index 924ee520c..099723b87 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test } from "../testing/mod.ts"; +import { test, runIfMain } from "../testing/mod.ts"; import { assert, assertEquals, assertStrContains } from "../testing/asserts.ts"; import { BufReader } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; @@ -135,3 +135,5 @@ test(async function printHelp(): Promise { helpProcess.close(); helpProcess.stdout.close(); }); + +runIfMain(import.meta); -- cgit v1.2.3