From 942e67c00b8ebdf6671fc8bb2e6c78c3ad8b3ff8 Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Thu, 27 Feb 2020 00:48:35 +0900 Subject: refactor(std/http): move io functions to http/io.ts (#4126) --- std/http/cookie_test.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'std/http/cookie_test.ts') diff --git a/std/http/cookie_test.ts b/std/http/cookie_test.ts index 5e29fede7..8ab862bb3 100644 --- a/std/http/cookie_test.ts +++ b/std/http/cookie_test.ts @@ -2,9 +2,10 @@ import { ServerRequest, Response } from "./server.ts"; import { getCookies, delCookie, setCookie } from "./cookie.ts"; import { assert, assertEquals } from "../testing/asserts.ts"; +const { test } = Deno; -Deno.test({ - name: "[HTTP] Cookie parser", +test({ + name: "Cookie parser", fn(): void { const req = new ServerRequest(); req.headers = new Headers(); @@ -31,8 +32,8 @@ Deno.test({ } }); -Deno.test({ - name: "[HTTP] Cookie Delete", +test({ + name: "Cookie Delete", fn(): void { const res: Response = {}; delCookie(res, "deno"); @@ -43,8 +44,8 @@ Deno.test({ } }); -Deno.test({ - name: "[HTTP] Cookie Set", +test({ + name: "Cookie Set", fn(): void { const res: Response = {}; -- cgit v1.2.3