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, }); }