That is not the problem, the problem is that you can't inject stuff into your functions like you do in your code. To inject you need to call inject
as you did in the beforeEach
. So, if you want to inject that factory, you need this:
it("message", inject(function(common) {
...
}));
There is how you inject. That should work.