Skip to content

Commit e30d874

Browse files
committed
Update
1 parent 912e30c commit e30d874

File tree

1 file changed

+105
-2
lines changed

1 file changed

+105
-2
lines changed

index.html

+105-2
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,28 @@ <h2><code>assertion types</code></h2>
561561
<li><a href="#assertion-undefined" class="alias"><code>Assertion#Undefined</code><code>Assertion#undefined</code></a></li>
562562

563563

564+
</ul>
565+
</div>
566+
567+
<div>
568+
<h2><code>es6</code></h2>
569+
<ul>
570+
571+
572+
<li><a href="#assertion-iterable"><code class='parent'>Assertion</code><code class='mtype'>#</code><b><code class="name">iterable</code></b></a></li>
573+
574+
575+
576+
577+
<li><a href="#assertion-iterator"><code class='parent'>Assertion</code><code class='mtype'>#</code><b><code class="name">iterator</code></b></a></li>
578+
579+
580+
581+
582+
<li><a href="#assertion-iterator"><code class='parent'>Assertion</code><code class='mtype'>#</code><b><code class="name">iterator</code></b></a></li>
583+
584+
585+
564586
</ul>
565587
</div>
566588

@@ -2023,7 +2045,7 @@ <h4>Arguments</h4>
20232045
<ol>
20242046

20252047
<li>
2026-
<code>[message]</code> <em>(string|RegExp|Function|Object)</em>: <p>Message to match or properties</p>
2048+
<code>[message]</code> <em>(string|RegExp|Function|Object|GeneratorFunction|GeneratorObject)</em>: <p>Message to match or properties</p>
20272049
</li>
20282050

20292051
<li>
@@ -2045,7 +2067,10 @@ <h4>Example</h4>
20452067
<span class="hljs-keyword">var</span> error = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Error</span>();
20462068
error.a = <span class="hljs-number">10</span>;
20472069
(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{ <span class="hljs-keyword">throw</span> error; }).should.throw(<span class="hljs-built_in">Error</span>, { a: <span class="hljs-number">10</span> });
2048-
(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{ <span class="hljs-keyword">throw</span> error; }).should.throw({ a: <span class="hljs-number">10</span> });</code></pre>
2070+
(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">()</span></span>{ <span class="hljs-keyword">throw</span> error; }).should.throw({ a: <span class="hljs-number">10</span> });
2071+
(<span class="hljs-function"><span class="hljs-keyword">function</span>*<span class="hljs-params">()</span> </span>{
2072+
<span class="hljs-keyword">yield</span> throwError();
2073+
}).should.throw();</code></pre>
20492074

20502075
<hr/>
20512076
</div>
@@ -3603,6 +3628,84 @@ <h4>Aliases</h4>
36033628

36043629

36053630

3631+
<hr/>
3632+
</div>
3633+
3634+
3635+
</div>
3636+
3637+
<div>
3638+
<h2><code>“es6” Members</code></h2>
3639+
3640+
3641+
<div class="doc-block">
3642+
<a id="assertion-iterable"></a>
3643+
<h3><a id=""></a><code>Assertion#iterable</code></h3>
3644+
3645+
<div>
3646+
<a href="#toc" title="Jump back to the TOC.">&#x24C9;</a>
3647+
</div>
3648+
3649+
<div class="description-section" ><p>Assert given object supports es6 iterable protocol (just check<br />that object has property Symbol.iterator, which is a function)</p></div>
3650+
3651+
3652+
3653+
3654+
3655+
3656+
3657+
3658+
3659+
3660+
3661+
<hr/>
3662+
</div>
3663+
3664+
3665+
<div class="doc-block">
3666+
<a id="assertion-iterator"></a>
3667+
<h3><a id=""></a><code>Assertion#iterator</code></h3>
3668+
3669+
<div>
3670+
<a href="#toc" title="Jump back to the TOC.">&#x24C9;</a>
3671+
</div>
3672+
3673+
<div class="description-section" ><p>Assert given object supports es6 iterator protocol (just check<br />that object has property next, which is a function)</p></div>
3674+
3675+
3676+
3677+
3678+
3679+
3680+
3681+
3682+
3683+
3684+
3685+
<hr/>
3686+
</div>
3687+
3688+
3689+
<div class="doc-block">
3690+
<a id="assertion-iterator"></a>
3691+
<h3><a id=""></a><code>Assertion#iterator</code></h3>
3692+
3693+
<div>
3694+
<a href="#toc" title="Jump back to the TOC.">&#x24C9;</a>
3695+
</div>
3696+
3697+
<div class="description-section" ><p>Assert given object is a generator object</p></div>
3698+
3699+
3700+
3701+
3702+
3703+
3704+
3705+
3706+
3707+
3708+
36063709
<hr/>
36073710
</div>
36083711

0 commit comments

Comments
 (0)