<commit_before>describe('Label', function () {
    var label;

    beforeEach(function () {
        label = new Label();
    });

    describe('Render', function () {

        describe('Setting the properties', function () {

            it('Setting property: name', function () {
                //Given
                var $el = label.render();
                assert.isUndefined($el.attr('pl-data-pl-name'));

                //When
                label.setName('NewLabel');

                //Then
                assert.equal($el.attr('data-pl-name'), 'NewLabel');
            });

            it('Setting property: visible', function () {
                //Given
                var $el = label.render();
                assert.isFalse($el.hasClass('hidden'));

                //When
                label.setVisible(false);

                //Then
                assert.isTrue($el.hasClass('hidden'));
            });

            it('Setting property: horizontalAlignment', function () {
                //Given
                var $el = label.render();
                assert.isTrue($el.hasClass('text-left'));
                assert.isFalse($el.hasClass('text-right'));
                assert.isFalse($el.hasClass('text-center'));
                assert.isFalse($el.hasClass('text-justify'));

                //When
                label.setHorizontalTextAlignment('Right');

                //Then
                assert.isTrue($el.hasClass('text-right'));
                assert.isFalse($el.hasClass('text-left'));
                assert.isFalse($el.hasClass('text-center'));
                assert.isFalse($el.hasClass('text-justify'));
            });

            it('Setting property: text', function () {
                //Given
                label.setText('Default Label');

                var $el = label.render(),
                    $label = $('label', $el);
<commit_msg>Поправил тест по выравниванию лейбла<commit_after>describe('Label', function () {
    var label;

    beforeEach(function () {
        label = new Label();
    });

    describe('Render', function () {

        describe('Setting the properties', function () {

            it('Setting property: name', function () {
                //Given
                var $el = label.render();
                assert.isUndefined($el.attr('pl-data-pl-name'));

                //When
                label.setName('NewLabel');

                //Then
                assert.equal($el.attr('data-pl-name'), 'NewLabel');
            });

            it('Setting property: visible', function () {
                //Given
                var $el = label.render();
                assert.isFalse($el.hasClass('hidden'));

                //When
                label.setVisible(false);

                //Then
                assert.isTrue($el.hasClass('hidden'));
            });

            it('Setting property: horizontalAlignment', function () {
                //Given
                var $el = label.render();
                assert.isTrue($el.hasClass('horizontalTextAlignment-Left'));
                assert.isFalse($el.hasClass('horizontalTextAlignment-Right'));
                assert.isFalse($el.hasClass('horizontalTextAlignment-Center'));
                assert.isFalse($el.hasClass('horizontalTextAlignment-Justify'));

                //When
                label.setHorizontalTextAlignment('Right');

                //Then
                assert.isTrue($el.hasClass('horizontalTextAlignment-Right'));
                assert.isFalse($el.hasClass('horizontalTextAlignment-Left'));
                assert.isFalse($el.hasClass('horizontalTextAlignment-Center'));
                assert.isFalse($el.hasClass('horizontalTextAlignment-Justify'));
            });

            it('Setting property: text', function () {
                //Given
                label.setText('Default Label');

                var $el = label.render(),
                    $label = $('label', $el);

{'fraction_non_alphanumeric': 0.14548200352378554, 'fraction_numerical': 0.0, 'mean_word_length': 1.494664155681105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3498216', 'n_tokens_mistral': 1023, 'n_tokens_neox': 923, 'n_words': 150}