<commit_before><commit_msg>why not working? :(<commit_after>define([
    'angular',
    'angular-mocks',
    'layout/exampleController'], function (sut) {

    describe('exampleController', function () {

        var scope;

        beforeEach(module('layout'));

        beforeEach(inject(function ($rootScope, $controller, $http) {

            scope = $rootScope.$new();
            var window = { confirm: function () { return true } };
            var customerServiceMock = {
                refreshCustomers: function() {
                    return $http.get();
                },
                deleteCustomer: function (n) { return $http.get(); }
            }
            spyOn(customerServiceMock, 'deleteCustomer');



            $controller('exampleController', {
                $scope: scope,
                customerService: customerServiceMock,
                $window:window
            });

            scope.deleteCustomer(15);

        }));


        it('should call the service deleteCustomer', function () {
            expect(customerServiceMock.deleteCustomer).toHaveBeenCalled();
        });
    });

});
{'fraction_non_alphanumeric': 0.1273209549071618, 'fraction_numerical': 0.0017683465959328027, 'mean_word_length': 1.8877551020408163, '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': '5214131', 'n_tokens_mistral': 284, 'n_tokens_neox': 265, 'n_words': 53}