import React from 'react';
import { render, screen } from '@testing-library/react';
import { AttributeTitle } from './AttributeTitle';
describe('AttributeTitle', function () {
    it('should render required label', function () {
        var label = 'The label';
        render(React.createElement(AttributeTitle, { label: label, isRequired: true }));
        expect(screen.getByText(label)).toBeInTheDocument();
        expect(screen.getByText('*')).toBeInTheDocument();
    });
    it('should render label without required mark', function () {
        var label = 'The label';
        render(React.createElement(AttributeTitle, { label: label }));
        expect(screen.getByText(label)).toBeInTheDocument();
        expect(screen.queryByText('*')).not.toBeInTheDocument();
    });
});
