<commit_before>define([
    'angular',
    'angular-mocks',
    'user/user-module-inc'
], function (angular, mocks, testModule) {

    'use strict';

    var moduleName = 'bl2.users';
    var serviceName = 'UserService';

    describe('Unit testing', function () {
        describe('Module: ' + moduleName, function () {
            describe('Service: ' + serviceName, function () {

                var $state;

                beforeEach(function () {
                    // load the module
                    module(moduleName);

                    inject(function (_$state_) {

                        $state = _$state_;

                        spyOn($state, 'go');

                        // TODO remove
                        // or
                        //spyOn($state, 'go').and.callFake(function(state, params) {
                        //    // This replaces the 'go' functionality for the duration of your test
                        //});

                    });
                });

                it('should contain a service ' + serviceName,
                    inject(function (UserService) {
                        expect(UserService).not.toBeUndefined();
                        expect(UserService).not.toBeNull();
                    }));

                // TODO
                it('should have a working showList method ' + serviceName,
                    inject(function (UserService) {
                        UserService.showList();
                        expect($state.go).toHaveBeenCalledWith('^');
                    }));

            });
        });
    });

});
<commit_msg>code style improvements<commit_after>define([
    'angular',
    'angular-mocks',
    'user/user-module-inc'
], function (angular, mocks, testModule) {

    'use strict';

    var moduleName = 'bl2.users';
    var serviceName = 'UserService';

    describe('Unit testing', function () {
        describe('Module: ' + moduleName, function () {
            describe('Service: ' + serviceName, function () {

                var $state;

                beforeEach(function () {
                    // load the module
                    module(moduleName);

                    inject(function (_$state_) {

                        $state = _$state_;

                        spyOn($state, 'go');
                    });
                });

                it('should contain a service ' + serviceName,
                    inject(function (UserService) {
                        expect(UserService).not.toBeUndefined();
                        expect(UserService).not.toBeNull();
                    }));

                // TODO
                it('should have a working showList method ' + serviceName,
                    inject(function (UserService) {
                        UserService.showList();
                        expect($state.go).toHaveBeenCalledWith('^');
                    }));

            });
        });
    });

});

{'fraction_non_alphanumeric': 0.12043301759133965, 'fraction_numerical': 0.0006765899864682003, 'mean_word_length': 1.1887490747594374, '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': '7539955', 'n_tokens_mistral': 720, 'n_tokens_neox': 657, 'n_words': 137}