Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add quick start guide #476

wants to merge 1 commit into from

2 participants


This adds a short section towards the top of the documentation page that explains briefly what needs to go in what file to have a success experience in 30 seconds.

I hope you like it!

tj commented

I dig it, we'll have to add it to the markdown though since I generate the html

@tj tj closed this


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 26, 2012
  1. @janl

    add quick start guide

    janl authored
This page is out of date. Refresh to see the latest.
Showing with 25 additions and 0 deletions.
  1. +25 −0 index.html
25 index.html
@@ -62,6 +62,31 @@ <h2 id="installation">Installation</h2>
<pre><code>$ npm install -g mocha
+<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)
<h2 id="assertions">Assertions</h2>
Something went wrong with that request. Please try again.