Files
2024-02-15 17:01:50 +00:00

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