Injected Dependency is undefined in Unit Test
问题 I'm new to Angular and I'm not quite sure exactly how dependency injection works. My problem is that I have Service A which depends on Service B, but when I inject Service A into my test Service B becomes undefined. I have seen Injecting dependent services when unit testing AngularJS services but that problem is a bit different than mine. This Injected Dependencies become undefined in angular service is very similar to my issue but I couldn't translate the JS. I have also changed my variable