summaryrefslogtreecommitdiff
path: root/std/http/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/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/server_test.ts')
-rw-r--r--std/http/server_test.ts12
1 files changed, 6 insertions, 6 deletions
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<void> {
+test("responseWrite", async function (): Promise<void> {
for (const testCase of responseTests) {
const buf = new Buffer();
const bufw = new BufWriter(buf);
@@ -69,7 +69,7 @@ test(async function responseWrite(): Promise<void> {
}
});
-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<void> {
+test("requestBodyWithContentLength", async function (): Promise<void> {
{
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<void> {
+test("requestBodyWithTransferEncoding", async function (): Promise<void> {
{
const shortText = "Hello";
const req = new ServerRequest();
@@ -240,7 +240,7 @@ test(async function requestBodyWithTransferEncoding(): Promise<void> {
}
});
-test(async function requestBodyReaderWithContentLength(): Promise<void> {
+test("requestBodyReaderWithContentLength", async function (): Promise<void> {
{
const shortText = "Hello";
const req = new ServerRequest();
@@ -283,7 +283,7 @@ test(async function requestBodyReaderWithContentLength(): Promise<void> {
}
});
-test(async function requestBodyReaderWithTransferEncoding(): Promise<void> {
+test("requestBodyReaderWithTransferEncoding", async function (): Promise<void> {
{
const shortText = "Hello";
const req = new ServerRequest();