Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Output example in README

  • Loading branch information...
commit 35b796d43f25d57fb77547fe856e02bfc22bd910 1 parent 3ef3d51
Joel Plane authored

Showing 1 changed file with 28 additions and 16 deletions. Show diff stats Hide diff stats

  1. 44  README.md
44  README.md
Source Rendered
@@ -10,22 +10,8 @@ of this goal somewhere, but we'll try our best.
10 10
 It's a BDD-esc library in it's syntax, but that's about as far as it
11 11
 goes in terms of BDD.
12 12
 
13  
-Example
14  
--------
15  
-
16  
-**Basic Syntax**:
17  
-
18  
-    var test = require('testnode')();
19  
-    test.onFailureExitNonZero();
20  
-
21  
-    test.context("Example Test Suite", function() {
22  
-        this.context("Example Sub-Context", function() {
23  
-            this.it("Basic Test Example", function(test) {
24  
-                test.assert(true);
25  
-                test.done();
26  
-            });
27  
-        });
28  
-    });
  13
+Usage and Example
  14
+-----------------
29 15
 
30 16
 **Executing tests**:
31 17
 
@@ -35,6 +21,32 @@ OR
35 21
 
36 22
     testnode testsDirectory
37 23
 
  24
+**Basic Syntax**:
  25
+
  26
+```javascript
  27
+var test = require('testnode')();
  28
+test.onFailureExitNonZero();
  29
+
  30
+test.context("Example Test Suite", function() {
  31
+    this.context("Example Sub-Context", function() {
  32
+        this.it("should run a basic example test", function(test) {
  33
+            test.assert(true);
  34
+            test.done();
  35
+        });
  36
+    });
  37
+});
  38
+```
  39
+
  40
+**Output**:
  41
+
  42
+```
  43
+Example Test Suite
  44
+  Example Sub-Context
  45
+    it should run a basic example test
  46
+      +
  47
+      1 assertion passed
  48
+```
  49
+
38 50
 See the examples directory for more examples.
39 51
 
40 52
 Installation

0 notes on commit 35b796d

Please sign in to comment.
Something went wrong with that request. Please try again.