[Lens] Fix broken test (#70117)

This commit is contained in:
Wylie Conlon 2020-06-27 02:20:29 -04:00 committed by GitHub
parent f4e7f14ffe
commit 40ff82d779
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,8 +177,7 @@ function mockClient() {
} as unknown) as Pick<SavedObjectsClientContract, 'find' | 'bulkGet'>; } as unknown) as Pick<SavedObjectsClientContract, 'find' | 'bulkGet'>;
} }
// Failing: See https://github.com/elastic/kibana/issues/70104 describe('loader', () => {
describe.skip('loader', () => {
describe('loadIndexPatterns', () => { describe('loadIndexPatterns', () => {
it('should not load index patterns that are already loaded', async () => { it('should not load index patterns that are already loaded', async () => {
const cache = await loadIndexPatterns({ const cache = await loadIndexPatterns({
@ -318,7 +317,6 @@ describe.skip('loader', () => {
a: sampleIndexPatterns.a, a: sampleIndexPatterns.a,
}, },
layers: {}, layers: {},
showEmptyFields: false,
}); });
expect(storage.set).toHaveBeenCalledWith('lens-settings', { expect(storage.set).toHaveBeenCalledWith('lens-settings', {
indexPatternId: 'a', indexPatternId: 'a',
@ -341,7 +339,6 @@ describe.skip('loader', () => {
b: sampleIndexPatterns.b, b: sampleIndexPatterns.b,
}, },
layers: {}, layers: {},
showEmptyFields: false,
}); });
}); });