File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
x-pack/legacy/plugins/snapshot_restore/server/routes/api Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -361,25 +361,4 @@ describe('[Snapshot and Restore API Routes] Policy', () => {
361361 ) . rejects . toThrow ( ) ;
362362 } ) ;
363363 } ) ;
364-
365- describe ( 'executeRetentionHandler()' , ( ) => {
366- const mockExecuteRequest = ( { } as unknown ) as Request ;
367-
368- it ( 'should return successful ES response' , async ( ) => {
369- const mockEsResponse = { acknowledged : true } ;
370- const callWithRequest = jest . fn ( ) . mockResolvedValueOnce ( mockEsResponse ) ;
371- const expectedResponse = { ...mockEsResponse } ;
372-
373- await expect (
374- executeRetentionHandler ( mockExecuteRequest , callWithRequest , mockResponseToolkit )
375- ) . resolves . toEqual ( expectedResponse ) ;
376- } ) ;
377-
378- it ( 'should throw if ES error' , async ( ) => {
379- const callWithRequest = jest . fn ( ) . mockRejectedValueOnce ( new Error ( ) ) ;
380- await expect (
381- executeRetentionHandler ( mockExecuteRequest , callWithRequest , mockResponseToolkit )
382- ) . rejects . toThrow ( ) ;
383- } ) ;
384- } ) ;
385364} ) ;
You can’t perform that action at this time.
0 commit comments