import React from 'react';
import { render, screen } from '@testing-library/react';
import { SpecialAttributesArray } from './SpecialAttributesArray';
describe('SpecialAttributesArray tests', function () {
    var values = ['tag1', 'tag2'];
    var className = 'class1';
    var Component = function (_a) {
        var value = _a.value;
        return value;
    };
    it('should render values joined with comma', function () {
        var container = render(React.createElement(SpecialAttributesArray, { values: values, Component: Component, className: className })).container;
        expect(screen.getByText('tag1, tag2')).toBeInTheDocument();
        expect(container.firstChild).toHaveClass(className);
    });
});
