MCPcopy
hub / github.com/FlowiseAI/Flowise / StubAsyncInput

Function StubAsyncInput

packages/agentflow/src/atoms/NodeInputHandler.test.tsx:192–196  ·  view source on GitHub ↗
({ onChange })

Source from the content-addressed store, hash-verified

190 // This verifies that async dropdown value changes flow through to onDataChange,
191 // which is what triggers field visibility re-evaluation in the parent (EditNodeDialog).
192 const StubAsyncInput: ComponentType<AsyncInputProps> = ({ onChange }) => (
193 <button data-testid='async-select' onClick={() => onChange('selected-value')}>
194 Select
195 </button>
196 )
197
198 it('calls onDataChange when asyncOptions fires onChange', () => {
199 render(

Callers

nothing calls this directly

Calls 1

onChangeFunction · 0.50

Tested by

no test coverage detected