"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 MdmModuleContext_1 = require("../contexts/MdmModuleContext");
var Tags_1 = require("./Tags");
describe('Tags tests', function () {
    var values = ['tag1'];
    var className = 'class1';
    var entity = { uri: 'uri1' };
    var uiPath = 'https://uiPath';
    it('should render SpecialAttributesArray with correct props', function () {
        (0, react_2.render)(react_1.default.createElement(MdmModuleContext_1.MdmModuleProvider, { values: { entity: entity, uiPath: uiPath } },
            react_1.default.createElement(Tags_1.Tags, { values: values, className: className })));
        expect(react_2.screen.getByTestId('reltio-attribute-value')).toHaveClass('class1');
        expect(react_2.screen.getByText('tag1')).toHaveAttribute('href', 'https://uiPath#p~com.reltio.plugins.tags.TagPerspective_e~uri1_tag~tag1');
    });
});
