diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts b/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts index f7c9a4d91adb5..68947c3558138 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts +++ b/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts @@ -191,12 +191,12 @@ function mockIndexPatternsService() { getIdsWithTitle: jest.fn(async () => { return [ { - id: '1', - title: 'my-fake-index-pattern', + id: sampleIndexPatterns[1].id, + title: sampleIndexPatterns[1].title, }, { - id: '2', - title: 'my-fake-restricted-pattern', + id: sampleIndexPatterns[2].id, + title: sampleIndexPatterns[2].title, }, ]; }),