summaryrefslogtreecommitdiff
path: root/std/http/file_server_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-28 12:33:09 +0200
committerGitHub <noreply@github.com>2020-04-28 12:33:09 +0200
commit8feb30e3258ed9690eb850e3ca22842b260a0403 (patch)
tree6805bfe3df675c2c7f6a379093061c6b73d8365a /std/http/file_server_test.ts
parentb508e845671de9351c3f51755647371d76128d29 (diff)
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named function.
Diffstat (limited to 'std/http/file_server_test.ts')
-rw-r--r--std/http/file_server_test.ts10
1 files changed, 5 insertions, 5 deletions
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<void> => {
}
});
-test(async function serveDirectory(): Promise<void> {
+test("serveDirectory", async function (): Promise<void> {
await startFileServer();
try {
const res = await fetch("http://localhost:4500/");
@@ -72,7 +72,7 @@ test(async function serveDirectory(): Promise<void> {
}
});
-test(async function serveFallback(): Promise<void> {
+test("serveFallback", async function (): Promise<void> {
await startFileServer();
try {
const res = await fetch("http://localhost:4500/badfile.txt");
@@ -85,7 +85,7 @@ test(async function serveFallback(): Promise<void> {
}
});
-test(async function serveWithUnorthodoxFilename(): Promise<void> {
+test("serveWithUnorthodoxFilename", async function (): Promise<void> {
await startFileServer();
try {
let res = await fetch("http://localhost:4500/http/testdata/%");
@@ -103,7 +103,7 @@ test(async function serveWithUnorthodoxFilename(): Promise<void> {
}
});
-test(async function servePermissionDenied(): Promise<void> {
+test("servePermissionDenied", async function (): Promise<void> {
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<void> {
}
});
-test(async function printHelp(): Promise<void> {
+test("printHelp", async function (): Promise<void> {
const helpProcess = Deno.run({
cmd: [Deno.execPath(), "run", "http/file_server.ts", "--help"],
stdout: "piped",