<commit_before>/*global describe, it, expect, beforeEach, inject */
'use strict';

describe( 'enterprise modul', function() {
    beforeEach( module( 'enterprise' ) );

    // newCtrl tests
    describe('enterprise newCtrl', function() {
        var newCtrl, scope;

        beforeEach( inject( function( $controller ) {
            scope = {};
            newCtrl = $controller( 'newCtrl', { $scope: scope});
        }));

        it('should create a empty person', inject(function () {
            expect(scope.person).toBeDefined();
            expect(scope.person.name).toBe('');
            expect(scope.person.description).toBe('');
        }));

        it('should have a save function', inject(function () {
            expect(typeof scope.save).toBe('function');
        }));

        it( 'should pass a dummy test', inject( function() {
            expect( newCtrl ).toBeTruthy();
        }));
    });

    // newCtrl tests
    describe('enterprise editCtrl', function() {
        var scope, editCtrl;

        beforeEach( inject( function($controller  ) {
            scope = {
                enterpriseCrew: [
                    {name: 'Picard', description: 'Captain'},
                    {name: 'Riker', description: 'Number One'},
                    {name: 'Worf', description: 'Security'}
                ]
            };

            editCtrl = $controller( 'editCtrl', { $scope: scope});
        }));

        it( 'should pass a dummy test', inject( function() {
            expect( editCtrl ).toBeTruthy();
        }));
    });
});<commit_msg>bugfix lint und unittest<commit_after>/*global describe, it, expect, beforeEach, inject */
'use strict';

describe( 'enterprise modul', function() {
    beforeEach( module( 'enterprise' ) );

    // newCtrl tests
    describe('enterprise newCtrl', function() {
        var newCtrl, scope;

        beforeEach( inject( function( $controller ) {
            scope = {};
            newCtrl = $controller( 'newCtrl', { $scope: scope});
        }));

        it('should create a empty person', inject(function () {
            expect(scope.person).toBeDefined();
            expect(scope.person.name).toBe('');
            expect(scope.person.description).toBe('');
        }));

        it('should have a save function', inject(function () {
            expect(typeof scope.save).toBe('function');
        }));

        it( 'should pass a dummy test', inject( function() {
            expect( newCtrl ).toBeTruthy();
        }));
    });

    // newCtrl tests
    describe('enterprise editCtrl', function() {
        var scope, editCtrl;

        beforeEach( inject( function($controller  ) {
            scope = {};
            editCtrl = $controller( 'editCtrl', { $scope: scope});
        }));

        it( 'should pass a dummy test', inject( function() {
            expect( editCtrl ).toBeTruthy();
        }));
    });
});
{'fraction_non_alphanumeric': 0.15427187824282254, 'fraction_numerical': 0.0, 'mean_word_length': 2.050632911392405, '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': '4222457', 'n_tokens_mistral': 767, 'n_tokens_neox': 751, 'n_words': 195}