diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-28 12:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:33:09 +0200 |
commit | 8feb30e3258ed9690eb850e3ca22842b260a0403 (patch) | |
tree | 6805bfe3df675c2c7f6a379093061c6b73d8365a /std/http/io_test.ts | |
parent | b508e845671de9351c3f51755647371d76128d29 (diff) |
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
Diffstat (limited to 'std/http/io_test.ts')
-rw-r--r-- | std/http/io_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/std/http/io_test.ts b/std/http/io_test.ts index 94c527e1b..0fe70730b 100644 --- a/std/http/io_test.ts +++ b/std/http/io_test.ts @@ -211,7 +211,7 @@ test("parseHttpVersion", (): void => { } }); -test(async function writeUint8ArrayResponse(): Promise<void> { +test("writeUint8ArrayResponse", async function (): Promise<void> { const shortText = "Hello"; const body = new TextEncoder().encode(shortText); @@ -244,7 +244,7 @@ test(async function writeUint8ArrayResponse(): Promise<void> { assertEquals(eof, Deno.EOF); }); -test(async function writeStringResponse(): Promise<void> { +test("writeStringResponse", async function (): Promise<void> { const body = "Hello"; const res: Response = { body }; @@ -276,7 +276,7 @@ test(async function writeStringResponse(): Promise<void> { assertEquals(eof, Deno.EOF); }); -test(async function writeStringReaderResponse(): Promise<void> { +test("writeStringReaderResponse", async function (): Promise<void> { const shortText = "Hello"; const body = new StringReader(shortText); @@ -344,7 +344,7 @@ test("writeResponse with trailer", async () => { assertEquals(ret, exp); }); -test(async function readRequestError(): Promise<void> { +test("readRequestError", async function (): Promise<void> { const input = `GET / HTTP/1.1 malformedHeader `; @@ -362,7 +362,7 @@ malformedHeader // Ported from Go // https://github.com/golang/go/blob/go1.12.5/src/net/http/request_test.go#L377-L443 // TODO(zekth) fix tests -test(async function testReadRequestError(): Promise<void> { +test("testReadRequestError", async function (): Promise<void> { const testCases = [ { in: "GET / HTTP/1.1\r\nheader: foo\r\n\r\n", |