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
You can not mock variable but you can create getter function for it and mock that method in your spec file.