MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / renderInput

Function renderInput

packages/agentflow/src/atoms/StateKeyValueInput.test.tsx:34–45  ·  view source on GitHub ↗
(props: Partial<React.ComponentProps<typeof StateKeyValueInput>> = {})

Source from the content-addressed store, hash-verified

32const theme = createTheme()
33
34function renderInput(props: Partial<React.ComponentProps<typeof StateKeyValueInput>> = {}) {
35 const defaultProps = {
36 value: [] as StateUpdate[],
37 onChange: jest.fn(),
38 ...props
39 }
40 return render(
41 <ThemeProvider theme={theme}>
42 <StateKeyValueInput {...defaultProps} />
43 </ThemeProvider>
44 )
45}
46
47describe('StateKeyValueInput', () => {
48 it('renders an empty state with only the add button', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected