@@ -20,9 +20,8 @@ describe("overriding endpoints", () => {
2020 loader = new Loader ( { context, sdkKey } ) ;
2121
2222 expect ( loader . endpoints ) . toStrictEqual ( [
23- "https://belt.prefab.cloud/api/v2" ,
24- "https://suspenders.prefab.cloud/api/v2" ,
25- "https://waistband.prefab.cloud/api/v2" ,
23+ "https://primary.reforge.com/api/v2" ,
24+ "https://secondary.reforge.com/api/v2" ,
2625 ] ) ;
2726 } ) ;
2827
@@ -125,7 +124,7 @@ describe("load", () => {
125124 throw new Error ( "Fetch hasn't happened" ) ;
126125 }
127126
128- expect ( requestUrl . host ) . toEqual ( "belt.prefab.cloud " ) ;
127+ expect ( requestUrl . host ) . toEqual ( "primary.reforge.com " ) ;
129128
130129 expect ( requestUrl . pathname ) . toStrictEqual (
131130 "/api/v2/configs/eval-with-context/eyJjb250ZXh0cyI6W3sidHlwZSI6InVzZXIiLCJ2YWx1ZXMiOnsiaWQiOnsic3RyaW5nIjoiMTIzIn0sImVtYWlsIjp7InN0cmluZyI6InRlc3RAZXhhbXBsZS5jb20ifX19LHsidHlwZSI6ImRldmljZSIsInZhbHVlcyI6eyJtb2JpbGUiOnsiYm9vbCI6dHJ1ZX19fV19"
@@ -166,7 +165,7 @@ describe("load", () => {
166165 if ( ! requestUrl ) {
167166 throw new Error ( "Last fetch hasn't happened" ) ;
168167 }
169- expect ( requestUrl . host ) . toStrictEqual ( "suspenders.prefab.cloud " ) ;
168+ expect ( requestUrl . host ) . toStrictEqual ( "secondary.reforge.com " ) ;
170169 } ) ;
171170
172171 it ( "fails when no endpoints are reachable" , async ( ) => {
@@ -183,13 +182,13 @@ describe("load", () => {
183182
184183 loader . load ( ) . catch ( ( reason : any ) => {
185184 expect ( reason . message ) . toEqual ( "Network error" ) ;
186- expect ( fetchCount ) . toStrictEqual ( 3 ) ;
185+ expect ( fetchCount ) . toStrictEqual ( 2 ) ;
187186
188187 if ( ! requestUrl ) {
189188 throw new Error ( "Last fetch hasn't happened" ) ;
190189 }
191190
192- expect ( requestUrl . host ) . toStrictEqual ( "waistband.prefab.cloud " ) ;
191+ expect ( requestUrl . host ) . toStrictEqual ( "secondary.reforge.com " ) ;
193192 } ) ;
194193 } ) ;
195194 } ) ;
0 commit comments