Skip to main content
Glama
HumanNameDisplay.test.tsx922 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { render, screen } from '../test-utils/render'; import { HumanNameDisplay } from './HumanNameDisplay'; describe('HumanNameDisplay', () => { test('Renders', () => { render( <HumanNameDisplay value={{ given: ['Alice'], family: 'Smith', use: 'official', }} /> ); expect(screen.getByText('Alice Smith')).toBeDefined(); }); test('Renders with options', () => { render( <HumanNameDisplay value={{ given: ['Alice'], family: 'Smith', use: 'official', }} options={{ all: true }} /> ); expect(screen.getByText('Alice Smith [official]')).toBeDefined(); }); test('Handles null name', () => { expect(HumanNameDisplay({})).toBeNull(); }); });

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