I am attempting to do my best at bdd with Karma and Mocha. I have created this shell of a service to try to get things going (generated from TypeScript)
I have created the following test
I put a break point on the line where the injector gets the service and when it breaks the debugger tells me that scheduleService exists to the injector
But when I executed the $injector.get method it fails with this error
What am I doing wrong this time?
The problem was with what I was passing to the factory. I changed the factory method parameters to
and now my test is working.