Skip to content

Commit f26f0e8

Browse files
address review feedback
1 parent c014238 commit f26f0e8

File tree

1 file changed

+0
-21
lines changed
  • x-pack/legacy/plugins/snapshot_restore/server/routes/api

1 file changed

+0
-21
lines changed

x-pack/legacy/plugins/snapshot_restore/server/routes/api/policy.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)