Skip to main content
Glama
ContactDetailDisplay.test.tsx705 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { render, screen } from '../test-utils/render'; import { ContactDetailDisplay } from './ContactDetailDisplay'; describe('ContactDetailDisplay', () => { test('Handles undefined value', () => { render(<ContactDetailDisplay />); }); test('Handles empty value', () => { render(<ContactDetailDisplay value={{}} />); }); test('Renders named value', () => { render(<ContactDetailDisplay value={{ name: 'Foo', telecom: [{ value: 'homer@example.com' }] }} />); expect(screen.getByText('Foo: homer@example.com', { exact: false })).toBeInTheDocument(); }); });

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/medplum/medplum'

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