mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 22:09:41 +02:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
|
import { render } from '@testing-library/react';
|
||
|
|
||
|
import { Code } from './Code';
|
||
|
|
||
|
test('should display a Code with children', async () => {
|
||
|
const children = 'test text code component';
|
||
|
const { findByText } = render(<Code>{children}</Code>);
|
||
|
|
||
|
const heading = await findByText(children);
|
||
|
expect(heading).toBeTruthy();
|
||
|
});
|