<commit_before>/* globals describe, ddescribe, beforeEach, inject, it, expect, iit,  */
'use strict';

describe('ProgressBarsSettings Provider', function () {
    var ProgressBarsSettings;

    beforeEach(module('pg.progress-bars'));
    beforeEach(inject(function ($injector) {
        ProgressBarsSettings = $injector.get('ProgressBarsSettings');
    }));
});<commit_msg>Covered ProgressBarsSettings by tests<commit_after>/* globals describe, ddescribe, beforeEach, inject, it, expect, iit,  */
'use strict';

describe('ProgressBarsSettings Provider', function () {
    var ProgressBarsSettingsProvider;
    var ProgressBarsSettingsService;

    beforeEach(module('pg.progress-bars', function(_ProgressBarsSettingsProvider_) {
        ProgressBarsSettingsProvider = _ProgressBarsSettingsProvider_;
    }));
    beforeEach(inject(function ($injector) {
        ProgressBarsSettingsService = $injector.get('ProgressBarsSettings');
    }));

    describe('Provider methods', function () {
        var testClass = 'some-test-class';

        describe('"setContainerClass"', function () {
            it('Should return self instance', function () {
                expect(ProgressBarsSettingsProvider.setContainerClass()).toEqual(ProgressBarsSettingsProvider);
            });

            it('Should set container class', function () {
                ProgressBarsSettingsProvider.setContainerClass(testClass);
                expect(ProgressBarsSettingsService.getClasses().container).toEqual(testClass);
            });
        });

        describe('"setBarClass"', function () {
            it('Should return self instance', function () {
                expect(ProgressBarsSettingsProvider.setBarClass()).toEqual(ProgressBarsSettingsProvider);
            });

            it('Should set container class', function () {
                ProgressBarsSettingsProvider.setBarClass(testClass);
                expect(ProgressBarsSettingsService.getClasses().bar).toEqual(testClass);
            });
        });

        describe('"setShowingClass"', function () {
            it('Should return self instance', function () {
                expect(ProgressBarsSettingsProvider.setShowingClass()).toEqual(ProgressBarsSettingsProvider);
            });

            it('Should set container class', function () {
                ProgressBarsSettingsProvider.setShowingClass(testClass);
                expect(ProgressBarsSettingsService.getClasses().barShowing).toEqual(testClass);
            });
        });
    });

    describe('Service methods', function () {
        it('Should return right classes', function () {
            ProgressBarsSettingsProvider.setContainerClass('container');
            ProgressBarsSettingsProvider.setBarClass('bar');
            ProgressBarsSettingsProvider.setShowingClass('bar-showing');

            expect(ProgressBarsSettingsService.getClasses()).toEqual({
                container: 'container',
                bar: 'bar',
                barShowing: 'bar-showing'
            });
        });
    });
});
{'fraction_non_alphanumeric': 0.1185939553219448, 'fraction_numerical': 0.0, 'mean_word_length': 2.939197930142303, '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': '5549280', 'n_tokens_mistral': 744, 'n_tokens_neox': 723, 'n_words': 119}