How do I stub a chain of methods in Sinon?
<p>I know how to use stub to replace one function.</p>

<pre><code>sandbox.stub(Cars, "findOne",
            () =&gt; {return car1 });
</code></pre>

<p>But now I have a line in my function I want to test that I need to stub that looks like this</p>

<pre><code>Cars.find().fetch()
</code></pre>

<p>So there is a chain of function here and I'm unsure what I need to do. How do I stub "find" to return something that I can use to stub "fetch"?</p>