From 9df00eb46b00f7a7d2db065fa83c56e63fa62037 Mon Sep 17 00:00:00 2001 From: Marshall Main Date: Wed, 2 Aug 2023 21:50:58 -0700 Subject: [PATCH] Fix import --- .../lib/risk_score/prebuilt_dev_tool_content/schema.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/security_solution/server/lib/risk_score/prebuilt_dev_tool_content/schema.test.ts b/x-pack/plugins/security_solution/server/lib/risk_score/prebuilt_dev_tool_content/schema.test.ts index a21f4890dcb0c..bf02aae37e5ca 100644 --- a/x-pack/plugins/security_solution/server/lib/risk_score/prebuilt_dev_tool_content/schema.test.ts +++ b/x-pack/plugins/security_solution/server/lib/risk_score/prebuilt_dev_tool_content/schema.test.ts @@ -5,17 +5,17 @@ * 2.0. */ -import { ReadConsoleRequestSchema } from '../../../../common/api/risk_score/read_prebuilt_dev_tool_content/read_prebuilt_dev_tool_content_route'; +import { readConsoleRequestBody } from '../../../../common/api/risk_score'; describe('ReadConsoleRequestSchema', () => { it('should throw error', () => { - expect(() => ReadConsoleRequestSchema.params.validate({ console_id: '123' })).toThrow(); + expect(() => readConsoleRequestBody.params.validate({ console_id: '123' })).toThrow(); }); it.each([['enable_host_risk_score', 'enable_user_risk_score']])( 'should allow console_id %p', async (template) => { - expect(ReadConsoleRequestSchema.params.validate({ console_id: template })).toEqual({ + expect(readConsoleRequestBody.params.validate({ console_id: template })).toEqual({ console_id: template, }); }