Jasmine\'s spyOn is good to change a method\'s behavior, but is there any way to change a value property (rather than a method) for an object? the code could be
spyOn
Any reason you cannot just change it on the object directly? It is not as if javascript enforces visibility of a property on an object.