diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-02-27 00:48:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 10:48:35 -0500 |
commit | 942e67c00b8ebdf6671fc8bb2e6c78c3ad8b3ff8 (patch) | |
tree | 9e53511a0cd6d55d4e9eb96e58f9b54e481981a5 /std/http/cookie_test.ts | |
parent | 9a8d6fbd984d2c0f9775d90af64b3e95231dd21d (diff) |
refactor(std/http): move io functions to http/io.ts (#4126)
Diffstat (limited to 'std/http/cookie_test.ts')
-rw-r--r-- | std/http/cookie_test.ts | 13 |
1 files changed, 7 insertions, 6 deletions
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 = {}; |