You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/components/Code/Code.test.tsx

12 lines
328 B

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();
});