I hate to be the one asking for help, but I've been stuck on this issue for quite some time now. Within my AngularJS application, I have three files that just won't work together. Despite trying various solutions both online and within the project itself, I can't seem to get even a basic test to pass. I've rewritten the files multiple times from scratch, but I must be missing something obvious by now. It's frustrating when you're so deep into a problem that you can't see the solution right in front of you.
Any assistance would be greatly appreciated. Here's the error output from gulp/karma:
PhantomJS 2.1.1 (Linux 0.0.0) SiteDescriptionService the service should be defined FAILED
Error: [$injector:unpr] Unknown provider: SiteDescriptionServiceProvider <- SiteDescriptionService
(link removed)
Expected undefined to be truthy.
The module declaration:
(function(){
'use strict';
angular.module('application.service', []);
})();
The actual service code:
(function () {
angular.module('application.service')
.service('SiteDescriptorService',
['$http', '$q', function ($http, $q) {
// Service logic here
}]
);
})();
And lastly, the test script:
describe('SiteDescriptionService', function() {
'use strict';
describe('the service', function() {
var service, httpBackend;
beforeEach(module('application.service'));
beforeEach(inject(function(_SiteDescriptionService_, $httpBackend) {
service = _SiteDescriptionService_;
httpBackend = $httpBackend;
}));
it('should be defined', function() {
expect(service).toBeTruthy();
});
});
});
Thank you in advance for any guidance or support provided.