mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
11 lines
332 B
TypeScript
11 lines
332 B
TypeScript
import { render } from '@testing-library/react';
|
|
|
|
import { TextTip } from './TextTip';
|
|
|
|
test('should display a TextTip with children', async () => {
|
|
const children = 'test text tip';
|
|
const { findByText } = render(<TextTip>{children}</TextTip>);
|
|
|
|
const heading = await findByText(children);
|
|
expect(heading).toBeTruthy();
|
|
});
|