AngularJS filters tests keep failing

I have an Angular app which I need to use AngularJS filters instead of Angular Pipes (hybrid app).

So my AngularJS app is pretty much an ng module, with FilterA myModule, filterB filterBmodule, filterC filterCmodule …

No controllers, no route, no templates – only the filters (router / views / etc. is in Angular).

The problem is that my AngularJS test cases are keep failing.
Every time I run the tests I’m getting the following error:

Error: [$injector:modulerr]: ...   ... ... nomod myModule. ... 
TypeError: myAfilter is not a function 

My filters look something like:

(function () {
    'use strict';
         .filter('myFilterAtmp', aFilter);

      function aFilter( ...

and the spec.js file looks something like:

describe('My Filter ..', function () {
    var myAfilter;

    beforeEach(function () {
        inject(function (myFilterAtmpFilter) {
           myAfilter = myFilterAtmpFilter;  

Any idea?


Source: New feed
Source Url AngularJS filters tests keep failing