@@ -80,15 +80,15 @@ test.describe("all supported methods should work in route handlers", () => {
8080 } ) ;
8181 expect ( optionsRes . status ( ) ) . toEqual ( 204 ) ;
8282 const headers = optionsRes . headers ( ) ;
83- expect ( headers [ " allow" ] ) . toContain ( "GET" ) ;
84- expect ( headers [ " allow" ] ) . toContain ( "HEAD" ) ;
85- expect ( headers [ " allow" ] ) . toContain ( "POST" ) ;
86- expect ( headers [ " allow" ] ) . toContain ( "PUT" ) ;
87- expect ( headers [ " allow" ] ) . toContain ( "PATCH" ) ;
88- expect ( headers [ " allow" ] ) . toContain ( "DELETE" ) ;
89- expect ( headers [ " allow" ] ) . toContain ( "OPTIONS" ) ;
90- expect ( headers [ " allow" ] ) . toContain ( "LOVE" ) ;
91- expect ( headers [ " special" ] ) . toContain ( "OpenNext is the best :) :] :> :D" ) ;
83+ expect ( headers . allow ) . toContain ( "GET" ) ;
84+ expect ( headers . allow ) . toContain ( "HEAD" ) ;
85+ expect ( headers . allow ) . toContain ( "POST" ) ;
86+ expect ( headers . allow ) . toContain ( "PUT" ) ;
87+ expect ( headers . allow ) . toContain ( "PATCH" ) ;
88+ expect ( headers . allow ) . toContain ( "DELETE" ) ;
89+ expect ( headers . allow ) . toContain ( "OPTIONS" ) ;
90+ expect ( headers . allow ) . toContain ( "LOVE" ) ;
91+ expect ( headers . special ) . toContain ( "OpenNext is the best :) :] :> :D" ) ;
9292 } ) ;
9393} ) ;
9494
@@ -169,7 +169,7 @@ test("should be able to redirect in route handler", async ({ request }) => {
169169 maxRedirects : 0 ,
170170 } ) ;
171171 expect ( redirectRes . status ( ) ) . toBe ( 307 ) ;
172- expect ( redirectRes . headers ( ) [ " location" ] ) . toBe ( "https://nextjs.org/" ) ;
172+ expect ( redirectRes . headers ( ) . location ) . toBe ( "https://nextjs.org/" ) ;
173173
174174 // Check if the redirect works
175175 const followedRes = await request . get ( "/methods/get/redirect" ) ;
0 commit comments