summaryrefslogtreecommitdiff
path: root/std/http/io_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/io_test.ts')
-rw-r--r--std/http/io_test.ts10
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",