From e8655eabae374a4a08995b48cdf6dba70deaa680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Thu, 22 Aug 2024 18:05:17 +0200 Subject: [PATCH] Fix test --- .../server/lib/delete_inference_endpoint.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/search_inference_endpoints/server/lib/delete_inference_endpoint.test.ts b/x-pack/plugins/search_inference_endpoints/server/lib/delete_inference_endpoint.test.ts index 1715a2a24060..15ea49825f09 100644 --- a/x-pack/plugins/search_inference_endpoints/server/lib/delete_inference_endpoint.test.ts +++ b/x-pack/plugins/search_inference_endpoints/server/lib/delete_inference_endpoint.test.ts @@ -13,7 +13,7 @@ describe('deleteInferenceEndpoint', () => { beforeEach(() => { mockClient = { inference: { - deleteModel: jest.fn(), + delete: jest.fn(), }, }; }); @@ -24,7 +24,7 @@ describe('deleteInferenceEndpoint', () => { await deleteInferenceEndpoint(mockClient, type, id); - expect(mockClient.inference.deleteModel).toHaveBeenCalledWith({ + expect(mockClient.inference.delete).toHaveBeenCalledWith({ inference_id: id, task_type: type, });