Skip to main content
Glama
deleonio
by deleonio
snapshot.test.tsx652 B
import { h } from '@stencil/core'; import { renderFunctionalComponentToSpecPage } from '../../../utils/testing'; import KolFormFieldCounterFc from '../FormFieldCounter'; const currentLength = 5; const currentLengthDebounced = 3; const maxLength = 10; describe('KolFormFieldCounterFc', () => { it('should render correctly', async () => { const page = await renderFunctionalComponentToSpecPage(() => ( <KolFormFieldCounterFc id="test-id" currentLength={currentLength} currentLengthDebounced={currentLengthDebounced} maxLength={maxLength} maxLengthBehavior={'hard'} /> )); expect(page.root).toMatchSnapshot(); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deleonio/public-ui-kolibri'

If you have feedback or need assistance with the MCP directory API, please join our Discord server