title: How can I spy on a getter property using jasmine?
body: <p>How can I spy on a getter property using jasmine?</p>
  
  <pre><code>var o = { get foo() {}, };
  
  spyOn(o, 'foo').and.returnValue('bar'); // Doesn't work.
  </code></pre>
  
  <p>This also does not work AFAICT:</p>
  
  <pre><code>spyOn(Object.getOwnPropertyDescriptor(o, 'foo'), 'get').and.returnValue('bar');
  </code></pre>