From 18d458da3e0f1a5b42aa2e9c73fe4eafdd8c3957 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Fri, 20 Sep 2024 17:24:01 -0700 Subject: [PATCH] fixing sync_state_with_url test Signed-off-by: Sean Li --- .../data/public/query/state_sync/sync_state_with_url.test.ts | 2 ++ 1 file changed, 2 insertions(+) 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 ca87637eb46..364d2127618 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}`); }