From a7a497a38664d68a6431e16e0e223171fb49ceae Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 15 Jan 2025 10:09:24 +0700 Subject: [PATCH] test: fix failed test cases --- web/utils/predefinedComponent.test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web/utils/predefinedComponent.test.ts b/web/utils/predefinedComponent.test.ts index 42b391d73..fe5a700d3 100644 --- a/web/utils/predefinedComponent.test.ts +++ b/web/utils/predefinedComponent.test.ts @@ -1,12 +1,11 @@ - -import { presetConfiguration } from './predefinedComponent'; +import { presetConfiguration } from './predefinedComponent' it('should have correct configuration for prompt_template', () => { - const config = presetConfiguration['prompt_template']; + const config = presetConfiguration['prompt_template'] expect(config).toEqual({ key: 'prompt_template', title: 'Prompt template', - description: `A predefined text or framework that guides the AI model's response generation. It includes placeholders or instructions for the model to fill in or expand upon.`, + description: `A structured format that guides how the model should respond.`, controllerType: 'input', controllerProps: { placeholder: 'Prompt template', @@ -14,5 +13,5 @@ it('should have correct configuration for prompt_template', () => { }, requireModelReload: true, configType: 'setting', - }); -}); + }) +})