diff --git a/src/plugins/data/public/query/state_sync/sync_state_with_url.test.ts b/src/plugins/data/public/query/state_sync/sync_state_with_url.test.ts index ca87637eb467..364d21276187 100644 --- a/src/plugins/data/public/query/state_sync/sync_state_with_url.test.ts +++ b/src/plugins/data/public/query/state_sync/sync_state_with_url.test.ts @@ -66,6 +66,8 @@ setupMock.uiSettings.get.mockImplementation((key: string) => { return { pause: false, value: 0 }; case UI_SETTINGS.QUERY_ENHANCEMENTS_ENABLED: return false; + case UI_SETTINGS.SEARCH_MAX_RECENT_DATASETS: + return 4; default: throw new Error(`sync_query test: not mocked uiSetting: ${key}`); }