diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-02-09 05:15:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-08 14:15:59 -0600 |
commit | a4bb8bab44cc778e6e455f19fdae9f3e4acc809b (patch) | |
tree | dcd78cd45f493588b04d3949aeb7c57b8d53d92e /std/http/file_server_test.ts | |
parent | cdba5ab6fc633606aaa6f95d0825832c3ac6fe5c (diff) |
remove non-null assertion operator from std (part2) (#3927)
Diffstat (limited to 'std/http/file_server_test.ts')
-rw-r--r-- | std/http/file_server_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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<void> { helpProcess.close(); helpProcess.stdout.close(); }); + +runIfMain(import.meta); |