@@ -304,12 +304,6 @@ describe('utils', () => {
304
304
pluginResource
305
305
) ;
306
306
307
- it ( 'returns no matching saved objs with filtering' , async ( ) => {
308
- const loader = createSavedAugmentVisLoader ( {
309
- savedObjectsClient : getMockAugmentVisSavedObjectClient ( [ obj1 , obj2 , obj3 ] ) ,
310
- } as SavedObjectOpenSearchDashboardsServicesWithAugmentVis ) ;
311
- expect ( ( await getAugmentVisSavedObjs ( visId3 , loader ) ) . length ) . toEqual ( 0 ) ;
312
- } ) ;
313
307
it ( 'returns no matching saved objs when client returns empty list' , async ( ) => {
314
308
const loader = createSavedAugmentVisLoader ( {
315
309
savedObjectsClient : getMockAugmentVisSavedObjectClient ( [ ] ) ,
@@ -349,18 +343,12 @@ describe('utils', () => {
349
343
} as SavedObjectOpenSearchDashboardsServicesWithAugmentVis ) ;
350
344
expect ( ( await getAugmentVisSavedObjs ( visId1 , loader ) ) . length ) . toEqual ( 1 ) ;
351
345
} ) ;
352
- it ( 'returns multiple matching saved objs without filtering ' , async ( ) => {
346
+ it ( 'returns multiple matching saved objs' , async ( ) => {
353
347
const loader = createSavedAugmentVisLoader ( {
354
348
savedObjectsClient : getMockAugmentVisSavedObjectClient ( [ obj1 , obj2 ] ) ,
355
349
} as SavedObjectOpenSearchDashboardsServicesWithAugmentVis ) ;
356
350
expect ( ( await getAugmentVisSavedObjs ( visId1 , loader ) ) . length ) . toEqual ( 2 ) ;
357
351
} ) ;
358
- it ( 'returns multiple matching saved objs with filtering' , async ( ) => {
359
- const loader = createSavedAugmentVisLoader ( {
360
- savedObjectsClient : getMockAugmentVisSavedObjectClient ( [ obj1 , obj2 , obj3 ] ) ,
361
- } as SavedObjectOpenSearchDashboardsServicesWithAugmentVis ) ;
362
- expect ( ( await getAugmentVisSavedObjs ( visId1 , loader ) ) . length ) . toEqual ( 2 ) ;
363
- } ) ;
364
352
} ) ;
365
353
366
354
describe ( 'buildPipelineFromAugmentVisSavedObjs' , ( ) => {
0 commit comments