Skip to content

Commit

Permalink
Add %D to spy.printf documentation
Browse files Browse the repository at this point in the history
Fix spy.printf layout for viewing outside the site
  • Loading branch information
Jay Sherby authored and mroderick committed Mar 3, 2018
1 parent f89392c commit 7b8eae3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Expand Up @@ -12,8 +12,8 @@ indent_size = 4
trim_trailing_whitespace = true

# Matches the exact files either package.json or .travis.yml
[{package.json, .travis.yml}]
indent_style = space
# and all Markdown files
[{package.json,.travis.yml,*.md}]
indent_size = 2

; Needed if doing `git add --patch` to edit patches
Expand Down
28 changes: 16 additions & 12 deletions docs/release-source/release/spies.md
Expand Up @@ -413,22 +413,26 @@ Replaces the spy with the original method. Only available if the spy replaced an
Returns the passed format string with the following replacements performed:

<dl>
<dt><code>%n</code></dt>
<dd>the name of the spy "spy" by default)</dd>
<dt><code>%n</code></dt>
<dd>the name of the spy "spy" by default)</dd>

<dt><code>%c</code></dt>
<dd>the number of times the spy was called, in words ("once", "twice", etc.)</dd>
<dt><code>%C</code></dt>
<dd>a list of string representations of the calls to the spy, with each call prefixed by a newline and four spaces</dd>
<dt><code>%c</code></dt>
<dd>the number of times the spy was called, in words ("once", "twice", etc.)</dd>

<dt><code>%t</code></dt>
<dd>a comma-delimited list of <code>this</code> values the spy was called on</dd>
<dt><code>%C</code></dt>
<dd>a list of string representations of the calls to the spy, with each call prefixed by a newline and four spaces</dd>

<dt><code>%<var>n</var></code></dt>
<dd>the formatted value of the <var>n</var>th argument passed to <code>printf</code></dd>
<dt><code>%t</code></dt>
<dd>a comma-delimited list of <code>this</code> values the spy was called on</dd>

<dt><code>%*</code></dt>
<dd>a comma-delimited list of the (non-format string) arguments passed to <code>printf</code></dd>
<dt><code>%<var>n</var></code></dt>
<dd>the formatted value of the <var>n</var>th argument passed to <code>printf</code></dd>

<dt><code>%*</code></dt>
<dd>a comma-delimited list of the (non-format string) arguments passed to <code>printf</code></dd>

<dt><code>%D</code></dt>
<dd>a multi-line list of the arguments received by all calls to the spy</dd>
</dl>


Expand Down

0 comments on commit 7b8eae3

Please sign in to comment.