An Angular service has several functions. All of them make use of a local variable defined via a var varName
at the top of the file.
Is there any way of mocking this variable when unit-testing the function?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…