Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ <h3 id="stubs-api">Stub API</h3>
Causes the stub to return the argument at the provided index.
<code>stub.returnsArg(0);</code> causes the stub to return the first argument.
</dd>
<dt><code>stub.returnsThis();</code></dt>
<dd>Causes the stub to return its <code>this</code> value. Helpful for stubbing fluent interfaces.</dd>
<dt><code>stub.throws();</code></dt>
<dd>Causes the stub to throw an exception (<code>Error</code>).</dd>
<dt><code>stub.throws("TypeError");</code></dt>
Expand Down