test: create some hooks and utils test script, modified clipboard test script (#27928)

This commit is contained in:
Gritty_dev
2025-11-12 08:47:06 -05:00
committed by GitHub
parent 19c92fd670
commit 5c06e285ec
9 changed files with 2289 additions and 3 deletions

View File

@@ -200,7 +200,7 @@ export const formatBooleanInputs = (useInputs?: PromptVariable[] | null, inputs?
return inputs
const res = { ...inputs }
useInputs.forEach((item) => {
const isBooleanInput = item.type === 'boolean'
const isBooleanInput = item.type === 'checkbox'
if (isBooleanInput) {
// Convert boolean inputs to boolean type
res[item.key] = !!res[item.key]