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/server_test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'std/http/server_test.ts') diff --git a/std/http/server_test.ts b/std/http/server_test.ts index d08c352c2..939e79600 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -54,7 +54,7 @@ const responseTests: ResponseTest[] = [ }, ]; -test(async function responseWrite(): Promise { +test("responseWrite", async function (): Promise { for (const testCase of responseTests) { const buf = new Buffer(); const bufw = new BufWriter(buf); @@ -69,7 +69,7 @@ test(async function responseWrite(): Promise { } }); -test(function requestContentLength(): void { +test("requestContentLength", function (): void { // Has content length { const req = new ServerRequest(); @@ -122,7 +122,7 @@ function totalReader(r: Deno.Reader): TotalReader { }, }; } -test(async function requestBodyWithContentLength(): Promise { +test("requestBodyWithContentLength", async function (): Promise { { const req = new ServerRequest(); req.headers = new Headers(); @@ -191,7 +191,7 @@ test("ServerRequest.finalize() should consume unread body / chunked, trailers", assertEquals(req.headers.get("deno"), "land"); assertEquals(req.headers.get("node"), "js"); }); -test(async function requestBodyWithTransferEncoding(): Promise { +test("requestBodyWithTransferEncoding", async function (): Promise { { const shortText = "Hello"; const req = new ServerRequest(); @@ -240,7 +240,7 @@ test(async function requestBodyWithTransferEncoding(): Promise { } }); -test(async function requestBodyReaderWithContentLength(): Promise { +test("requestBodyReaderWithContentLength", async function (): Promise { { const shortText = "Hello"; const req = new ServerRequest(); @@ -283,7 +283,7 @@ test(async function requestBodyReaderWithContentLength(): Promise { } }); -test(async function requestBodyReaderWithTransferEncoding(): Promise { +test("requestBodyReaderWithTransferEncoding", async function (): Promise { { const shortText = "Hello"; const req = new ServerRequest(); -- cgit v1.2.3