mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
18 lines
562 B
TypeScript
18 lines
562 B
TypeScript
import {render, screen} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import ContextData from 'sentry/components/contextData';
|
|
|
|
describe('ContextData', function () {
|
|
describe('render()', function () {
|
|
describe('strings', function () {
|
|
it('should render urls w/ an additional <a> link', function () {
|
|
const URL = 'https://example.org/foo/bar/';
|
|
render(<ContextData data={URL} />);
|
|
|
|
expect(screen.getByText(URL)).toBeInTheDocument();
|
|
expect(screen.getByRole('link')).toHaveAttribute('href', URL);
|
|
});
|
|
});
|
|
});
|
|
});
|