@@ -156,12 +156,6 @@ test('splitChangesUpdater / compute splits mutation with filters', () => {
156156} ) ;
157157
158158describe ( 'splitChangesUpdater' , ( ) => {
159-
160- fetchMock . once ( '*' , { status : 200 , body : splitChangesMock1 } ) ; // @ts -ignore
161- const splitApi = splitApiFactory ( settingsSplitApi , { getFetch : ( ) => fetchMock } , telemetryTrackerFactory ( ) ) ;
162- const fetchSplitChanges = jest . spyOn ( splitApi , 'fetchSplitChanges' ) ;
163- const splitChangesFetcher = splitChangesFetcherFactory ( splitApi . fetchSplitChanges ) ;
164-
165159 const splits = new SplitsCacheInMemory ( ) ;
166160 const updateSplits = jest . spyOn ( splits , 'update' ) ;
167161
@@ -173,6 +167,11 @@ describe('splitChangesUpdater', () => {
173167
174168 const storage = { splits, rbSegments, segments } ;
175169
170+ fetchMock . once ( '*' , { status : 200 , body : splitChangesMock1 } ) ; // @ts -ignore
171+ const splitApi = splitApiFactory ( settingsSplitApi , { getFetch : ( ) => fetchMock } , telemetryTrackerFactory ( ) ) ;
172+ const fetchSplitChanges = jest . spyOn ( splitApi , 'fetchSplitChanges' ) ;
173+ const splitChangesFetcher = splitChangesFetcherFactory ( splitApi . fetchSplitChanges ) ;
174+
176175 const readinessManager = readinessManagerFactory ( EventEmitter , fullSettings ) ;
177176 const splitsEmitSpy = jest . spyOn ( readinessManager . splits , 'emit' ) ;
178177
0 commit comments