1234567891011121314151617181920212223 |
- import {render, screen} from 'sentry-test/reactTestingLibrary';
- import {textWithMarkupMatcher} from 'sentry-test/utils';
- import {tct} from 'sentry/locale';
- describe('locale.gettextComponentTemplate', () => {
- it('should render two component templates inside the same parent', () => {
- render(
- <div>
- {tct('1st: [one]', {
- one: 'one',
- })}
- {tct('2nd: [two]', {
- two: 'two',
- })}
- </div>
- );
- expect(
- screen.getByText(textWithMarkupMatcher('1st: one2nd: two'))
- ).toBeInTheDocument();
- });
- });
|