(props: Partial<React.ComponentProps<typeof StateKeyValueInput>> = {})
| 32 | const theme = createTheme() |
| 33 | |
| 34 | function 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 | |
| 47 | describe('StateKeyValueInput', () => { |
| 48 | it('renders an empty state with only the add button', () => { |
no outgoing calls
no test coverage detected