Angular JS karma filter unknown provider

I tried to inject the filter to Jasmine for test. But it keeps saying unknown provider The problem is I need to put to postfix the word Filter if your filter name is “filterName” Then in Jasmine you need to inject it with “filterNameFilter”

Angular Karma Jasmine doesn’t load directive during test

Today I tried to separate my directives to separate files.But after that my Jasmine test returns false because the directive is not loaded to the test anymore. The problem is that I use the same module name and second param [] in the module when define the directive in different files then only the last file will create the module with it directive. The others will be ignored. requires (optional): If specified then new module is being created.