"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var react_2 = require("@testing-library/react");
var AttributeTitle_1 = require("./AttributeTitle");
describe('AttributeTitle', function () {
    it('should render required label', function () {
        var label = 'The label';
        (0, react_2.render)(react_1.default.createElement(AttributeTitle_1.AttributeTitle, { label: label, isRequired: true }));
        expect(react_2.screen.getByText(label)).toBeInTheDocument();
        expect(react_2.screen.getByText('*')).toBeInTheDocument();
    });
    it('should render label without required mark', function () {
        var label = 'The label';
        (0, react_2.render)(react_1.default.createElement(AttributeTitle_1.AttributeTitle, { label: label }));
        expect(react_2.screen.getByText(label)).toBeInTheDocument();
        expect(react_2.screen.queryByText('*')).not.toBeInTheDocument();
    });
});
