From 8feb30e3258ed9690eb850e3ca22842b260a0403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 12:33:09 +0200 Subject: BREAKING: remove overload of Deno.test() (#4951) This commit removes overload of Deno.test() that accepted named function. --- std/http/file_server_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (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 dc14d2c57..c377f3bda 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -50,7 +50,7 @@ test("file_server serveFile", async (): Promise => { } }); -test(async function serveDirectory(): Promise { +test("serveDirectory", async function (): Promise { await startFileServer(); try { const res = await fetch("http://localhost:4500/"); @@ -72,7 +72,7 @@ test(async function serveDirectory(): Promise { } }); -test(async function serveFallback(): Promise { +test("serveFallback", async function (): Promise { await startFileServer(); try { const res = await fetch("http://localhost:4500/badfile.txt"); @@ -85,7 +85,7 @@ test(async function serveFallback(): Promise { } }); -test(async function serveWithUnorthodoxFilename(): Promise { +test("serveWithUnorthodoxFilename", async function (): Promise { await startFileServer(); try { let res = await fetch("http://localhost:4500/http/testdata/%"); @@ -103,7 +103,7 @@ test(async function serveWithUnorthodoxFilename(): Promise { } }); -test(async function servePermissionDenied(): Promise { +test("servePermissionDenied", async function (): Promise { const deniedServer = Deno.run({ cmd: [Deno.execPath(), "run", "--allow-net", "http/file_server.ts"], stdout: "piped", @@ -130,7 +130,7 @@ test(async function servePermissionDenied(): Promise { } }); -test(async function printHelp(): Promise { +test("printHelp", async function (): Promise { const helpProcess = Deno.run({ cmd: [Deno.execPath(), "run", "http/file_server.ts", "--help"], stdout: "piped", -- cgit v1.2.3