Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Commit

Permalink
Merge pull request #20 from TEHEK/stub-async
Browse files Browse the repository at this point in the history
Adding short description for stub.*Async methods
  • Loading branch information
cjohansen committed Mar 4, 2013
2 parents cde9c0f + c74f275 commit 4da11c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,15 @@ <h3 id="stubs-api">Stub API</h3>
<dd>
Like <code>callArg</code>, but with arguments.
</dd>
<dt><code>stub.callsArgAsync(index);</code></dt>
<dt><code>stub.callsArgOnAsync(index, context);</code></dt>
<dt><code>stub.callsArgWithAsync(index, arg1, arg2, ...);</code></dt>
<dt><code>stub.callsArgOnWithAsync(index, context, arg1, arg2, ...);</code></dt>
<dt><code>stub.yieldsAsync([arg1, arg2, ...])</code></dt>
<dt><code>stub.yieldsOnAsync(context, [arg1, arg2, ...])</code></dt>
<dt><code>stub.yieldsToAsync(property, [arg1, arg2, ...])</code></dt>
<dt><code>stub.yieldsToOnAsync(property, context, [arg1, arg2, ...])</code></dt>
<dd>Same as their corresponding non-Async counterparts, but with callback being deferred (executed not immediately but after short timeout and in another "thread")</dd>
</dl>
</div>
<div class="section" id="mocks">
Expand Down

0 comments on commit 4da11c0

Please sign in to comment.