<commit_before>'use strict';

describe('AccountSummaryController', function() {

    var ctrl;
    var $q, testSecurities, testPositions;
    var $scope;

    beforeEach(module('portfolio'));

    beforeEach(inject(function($controller, _$q_, _$rootScope_, _Positions_, _Securities_) {
        testSecurities = _Securities_;
        testPositions = _Positions_;
        $scope = _$rootScope_.$new();
        $q = _$q_;

        ctrl = $controller('AccountSummaryController', 
                           { 
                               Securities: testSecurities,
                               Positions: testPositions,
                               $q: $q,
                           });
        console.log(testSecurities);
        spyOn(testPositions, 'all'); 
    }));

    afterEach(function(){
        //$scope.$apply();
    });

    it('should have controller defined', function() {
        console.log("jeeppi", ctrl);
        expect(ctrl).toBeDefined();
    }); 

    it('should have called Securities.all()', function() {
        $scope.$digest();
        expect(testPositions.all).toHaveBeenCalled();
    });
});<commit_msg>style(): console debug statements removed !minor<commit_after>'use strict';

describe('AccountSummaryController', function() {

    var ctrl;
    var $q, testSecurities, testPositions;
    var $scope;

    beforeEach(module('portfolio'));

    beforeEach(inject(function($controller, _$q_, _$rootScope_, _Positions_, _Securities_) {
        testSecurities = _Securities_;
        testPositions = _Positions_;
        $scope = _$rootScope_.$new();
        $q = _$q_;

        ctrl = $controller('AccountSummaryController', 
                           { 
                               Securities: testSecurities,
                               Positions: testPositions,
                               $q: $q,
                           });
        spyOn(testPositions, 'all'); 
    }));

    afterEach(function(){
        //$scope.$apply();
    });

    it('should have controller defined', function() {
        expect(ctrl).toBeDefined();
    }); 
});
{'fraction_non_alphanumeric': 0.13164193393968407, 'fraction_numerical': 0.0, 'mean_word_length': 1.9312762973352033, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6077222', 'n_tokens_mistral': 583, 'n_tokens_neox': 547, 'n_words': 103}