title: jasmine - creating nested spy object
body: <p>Is there a way to get Jasmine to generate spies so that such a test will pass:</p>
  
  <pre><code>it('a', function () {
    const a = jasmine.createSpyObj('a', ['b', 'c.d', 'e.f.g']);
    a.b();
    a.c.d();
    a.e.f.g();
    expect(a.b).toHaveBeenCalled();
    expect(a.c.d).toHaveBeenCalled();
    expect(a.e.f.g).toHaveBeenCalled();
  });
  </code></pre>
  
  <p>the use case for this is reducing the typing required to create such nested spies</p>