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:osAn 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