Skip to content

Commit 6900637

Browse files
committed
formating
1 parent ce74fca commit 6900637

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/csrf_test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,19 @@ Deno.test("Csrf Test", async (t) => {
3030

3131
await t.step("Get Tokens cookie path is / on sub path", async () => {
3232
const handler = await createHandler(manifest, config);
33-
const res = await handler(new Request("http://127.0.0.1/sub/csrf"), CONN_INFO);
33+
const res = await handler(
34+
new Request("http://127.0.0.1/sub/csrf"),
35+
CONN_INFO,
36+
);
3437
expect(res.status).toBe(200);
3538

3639
const text = await res.text();
3740
expect(text.includes("<p>NO SET</p>")).toBeTruthy();
3841

39-
4042
console.log(res.headers.get("set-cookie"));
4143
const csrfCookieToken = res.headers
4244
.get("set-cookie")!
43-
.split("Path=")[1]
45+
.split("Path=")[1];
4446

4547
expect(csrfCookieToken).toBe("/");
4648
});

0 commit comments

Comments
 (0)