@@ -152,6 +152,7 @@ describe('Consistency configuration', () => {
152
152
cool : true ,
153
153
functions : [ 'edge' , 'serverless' ] ,
154
154
}
155
+ const mockRegion = 'us-east-1'
155
156
const headers = {
156
157
etag : '123456789' ,
157
158
'x-amz-meta-user' : `b64;${ base64Encode ( mockMetadata ) } ` ,
@@ -160,17 +161,17 @@ describe('Consistency configuration', () => {
160
161
. get ( {
161
162
headers : { authorization : `Bearer ${ edgeToken } ` } ,
162
163
response : new Response ( value ) ,
163
- url : `${ uncachedEdgeURL } /${ siteID } /deploy:${ deployID } /${ key } ` ,
164
+ url : `${ uncachedEdgeURL } /region: ${ mockRegion } / ${ siteID } /deploy:${ deployID } /${ key } ` ,
164
165
} )
165
166
. head ( {
166
167
headers : { authorization : `Bearer ${ edgeToken } ` } ,
167
168
response : new Response ( null , { headers } ) ,
168
- url : `${ uncachedEdgeURL } /${ siteID } /deploy:${ deployID } /${ key } ` ,
169
+ url : `${ uncachedEdgeURL } /region: ${ mockRegion } / ${ siteID } /deploy:${ deployID } /${ key } ` ,
169
170
} )
170
171
. get ( {
171
172
headers : { authorization : `Bearer ${ edgeToken } ` } ,
172
173
response : new Response ( value , { headers } ) ,
173
- url : `${ uncachedEdgeURL } /${ siteID } /deploy:${ deployID } /${ key } ` ,
174
+ url : `${ uncachedEdgeURL } /region: ${ mockRegion } / ${ siteID } /deploy:${ deployID } /${ key } ` ,
174
175
} )
175
176
176
177
globalThis . fetch = mockStore . fetch
@@ -179,6 +180,7 @@ describe('Consistency configuration', () => {
179
180
consistency : 'strong' ,
180
181
edgeURL,
181
182
deployID,
183
+ region : mockRegion ,
182
184
token : edgeToken ,
183
185
siteID,
184
186
uncachedEdgeURL,
0 commit comments