'How to mock a variable in jasmine test case which is loaded from a script
We have a scenario where we are loading a script which has a variable name "xyz" and we have to use its client object and access its method something like xyz.abc.method() which we have added in one of our actual service calling method.
Tried doing spy on the variable and method but whiule running the test case still getting error as its cannot find variable xyz.
Can some one provide some idea or ways on how to handle those situations.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
