Тесты в AngularJS: ошибка ссылки функции ввода

Я пытаюсь проверить код ниже:

describe('myService test', function () {
    describe('when I call myService.one', function () {
        beforeEach(angular.module('TargetMarketServices'));
        it('returns 1', inject(function (imagesRepository) {
            expect(true).toEqual(true);
        }));

    });

});

Когда этот код выполняется, я получаю эту ошибку:

TypeError: 'undefined' is not a function (evaluating 'this.func.apply(this.spec)')
    at http://localhost:8080/testacular.js:76
    at http://localhost:8080/context.html:35
ReferenceError: Can't find variable: inject
    at /home/peter/Dropbox/AngularJS/set-component/test/sets/sets-ihm.js:6
    at /home/peter/Dropbox/AngularJS/set-component/test/sets/sets-ihm.js:8
    at /home/peter/Dropbox/AngularJS/set-component/test/sets/sets-ihm.js:10

PhantomJS 1.8: Выполнено 1 из 3 (1 СБОЙ) (пропущено 2) (0,072 с / 0,01 с)

Для своего теста я использую Testacular с жасмином и PhantomJS.

Ответы на вопрос(2)

Ваш ответ на вопрос