test: fix failed test cases

This commit is contained in:
Louis 2025-01-15 10:09:24 +07:00
parent 6b44bde9c9
commit a7a497a386
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -1,12 +1,11 @@
import { presetConfiguration } from './predefinedComponent'
import { presetConfiguration } from './predefinedComponent';
it('should have correct configuration for prompt_template', () => { it('should have correct configuration for prompt_template', () => {
const config = presetConfiguration['prompt_template']; const config = presetConfiguration['prompt_template']
expect(config).toEqual({ expect(config).toEqual({
key: 'prompt_template', key: 'prompt_template',
title: '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', controllerType: 'input',
controllerProps: { controllerProps: {
placeholder: 'Prompt template', placeholder: 'Prompt template',
@ -14,5 +13,5 @@ it('should have correct configuration for prompt_template', () => {
}, },
requireModelReload: true, requireModelReload: true,
configType: 'setting', configType: 'setting',
}); })
}); })