<commit_before>/**
 * Created by eugene.karanda on 02.04.2016.
 */

describe('PhoneListController', function () {

    beforeEach(module('tutorialApplication'));

    it('should create "phones" model with 3 phones', inject(function ($rootScope, $controller) {
        var scope = $rootScope.$new();
        $controller('PhoneListController', {$scope: scope});

        expect(scope.phones.length).toBe(3);
    }));

});<commit_msg>Implement unit test for step4<commit_after>/**
 * Created by eugene.karanda on 02.04.2016.
 */

describe('Controllers', function () {

    describe('PhoneListController', function () {
        var scope;
        var controller;

        beforeEach(module('tutorialApplication'));

        beforeEach(inject(function ($rootScope, $controller) {
            scope = $rootScope.$new();
            controller = $controller('PhoneListController', {$scope: scope});
        }));

        it('should create "phones" model with 3 phones', function () {
            expect(scope.phones.length).toBe(3);
        });

        it('should set the default value of orderProp model', function() {
            expect(scope.orderProperty).toBe('age');
        });
    });
});
{'fraction_non_alphanumeric': 0.15546218487394958, 'fraction_numerical': 0.01764705882352941, 'mean_word_length': 2.9966442953020134, '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': '5297705', 'n_tokens_mistral': 339, 'n_tokens_neox': 316, 'n_words': 73}