Skip to content

Commit a934d95

Browse files
Test update
1 parent 5b056eb commit a934d95

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/sync/polling/updaters/__tests__/splitChangesUpdater.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ test('splitChangesUpdater / compute splits mutation with filters', () => {
156156
});
157157

158158
describe('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

Comments
 (0)