I have a global variable defined in my main template, which I use to store information bits from the back end, such as the environment context path. I can't move that variable inside a service.
How can I expose that variable to Karma when I run the unit tests?
question from:https://stackoverflow.com/questions/19263586/global-variables-in-karma-test-runner