☕️ Classic, reliable, trusted test framework for Node.js and the browser
update
TJ Holowaychukf18c0a0b1f09
diff --git a/index.html b/index.htmlindex eb8f2750..02f69612 100644--- a/index.html+++ b/index.html@@ -62,6 +62,30 @@<pre><code>$ npm install -g mocha</code></pre>+<h2 id="getting-started">1. 2. 3. Mocha!</h2>+++<pre><code>$ npm install -g mocha+$ mkdir test+$ $EDITOR test/test.js++var assert = require("assert")+describe('Array', function(){+ describe('#indexOf()', function(){+ it('should return -1 when the value is not present', function(){+ assert.equal(-1, [1,2,3].indexOf(5));+ assert.equal(-1, [1,2,3].indexOf(0));+ })+ })+})++$ mocha++ .++ ✔ 1 test complete (1ms)+</code></pre>+<h2 id="assertions">Assertions</h2>diff --git a/index.md b/index.mdindex a0178756..b7a60ff6 100644--- a/index.md+++ b/index.md@@ -39,13 +39,13 @@ Mocha is a feature-rich JavaScript test framework running on [node](http://nodej$ npm install -g mocha-<h2 id="getting-started">1. 2. 3. Mocha!</h2>$ npm install -g mocha$ mkdir test$ $EDITOR test/test.js+var assert = require("assert")describe('Array', function(){describe('#indexOf()', function(){@@ -55,12 +55,12 @@ Mocha is a feature-rich JavaScript test framework running on [node](http://nodej})})})+$ mocha.✔ 1 test complete (1ms)- $<h2 id="assertions">Assertions</h2>