@@ -78,7 +78,14 @@ describe('RestClient', () => {
7878 eTag : 'etag' ,
7979 state : 'UPDATE' ,
8080 entries : { color : 'sparkling' } ,
81- templateVersion : 1
81+ templateVersion : 1 ,
82+ experimentDescriptions : [ {
83+ experimentId : "_exp_1" ,
84+ variantId : "1" ,
85+ experimentStartTime : "2025-04-06T14:13:57.597Z" ,
86+ triggerTimeoutMillis : "15552000000" ,
87+ timeToLiveMillis : "15552000000"
88+ } ]
8289 } ;
8390
8491 fetchStub . returns (
@@ -90,7 +97,8 @@ describe('RestClient', () => {
9097 Promise . resolve ( {
9198 entries : expectedResponse . entries ,
9299 state : expectedResponse . state ,
93- templateVersion : expectedResponse . templateVersion
100+ templateVersion : expectedResponse . templateVersion ,
101+ experimentDescriptions : expectedResponse . experimentDescriptions
94102 } )
95103 } as Response )
96104 ) ;
@@ -101,7 +109,8 @@ describe('RestClient', () => {
101109 status : expectedResponse . status ,
102110 eTag : expectedResponse . eTag ,
103111 config : expectedResponse . entries ,
104- templateVersion : expectedResponse . templateVersion
112+ templateVersion : expectedResponse . templateVersion ,
113+ experiments : expectedResponse . experimentDescriptions
105114 } ) ;
106115 } ) ;
107116
@@ -191,7 +200,8 @@ describe('RestClient', () => {
191200 status : 304 ,
192201 eTag : 'response-etag' ,
193202 config : undefined ,
194- templateVersion : undefined
203+ templateVersion : undefined ,
204+ experiments : undefined
195205 } ) ;
196206 } ) ;
197207
@@ -230,7 +240,8 @@ describe('RestClient', () => {
230240 status : 304 ,
231241 eTag : 'etag' ,
232242 config : undefined ,
233- templateVersion : undefined
243+ templateVersion : undefined ,
244+ experiments : undefined
234245 } ) ;
235246 } ) ;
236247
@@ -248,7 +259,8 @@ describe('RestClient', () => {
248259 status : 200 ,
249260 eTag : 'etag' ,
250261 config : { } ,
251- templateVersion : undefined
262+ templateVersion : undefined ,
263+ experiments : [ ]
252264 } ) ;
253265 }
254266 } ) ;
0 commit comments