File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments