@@ -79,7 +79,7 @@ describe('CSV Export Streaming', () => {
7979
8080 const response = await fetch ( 'http://localhost:3000/api/orders/export' , {
8181 headers : {
82- cookie : `next-auth.session-token=${ session . sessionToken } ` ,
82+ cookie : `next-auth.session-token=${ session . id } ` ,
8383 } ,
8484 } ) ;
8585
@@ -141,7 +141,7 @@ describe('CSV Export Streaming', () => {
141141
142142 const response = await fetch ( 'http://localhost:3000/api/orders/export' , {
143143 headers : {
144- cookie : `next-auth.session-token=${ session . sessionToken } ` ,
144+ cookie : `next-auth.session-token=${ session . id } ` ,
145145 } ,
146146 } ) ;
147147
@@ -179,7 +179,7 @@ describe('CSV Export Streaming', () => {
179179
180180 const response = await fetch ( 'http://localhost:3000/api/orders/export' , {
181181 headers : {
182- cookie : `next-auth.session-token=${ session . sessionToken } ` ,
182+ cookie : `next-auth.session-token=${ session . id } ` ,
183183 } ,
184184 } ) ;
185185
@@ -234,7 +234,7 @@ describe('CSV Export Streaming', () => {
234234
235235 const response = await fetch ( 'http://localhost:3000/api/orders/export' , {
236236 headers : {
237- cookie : `next-auth.session-token=${ session . sessionToken } ` ,
237+ cookie : `next-auth.session-token=${ session . id } ` ,
238238 } ,
239239 } ) ;
240240
0 commit comments