Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

docs

  • Loading branch information...
commit 3ab099cbfc613896b8db7ca7db1baec522257332 1 parent fbdf2a0
Pau Ramon authored
Showing with 32 additions and 0 deletions.
  1. +32 −0 Readme.md
View
32 Readme.md
@@ -1,3 +1,35 @@
# testosterone
This module is under construction.
+
+ var app = require('./your_http_web_app');
+
+ require('testosterone)(app)
+ .GET('/', function (res) {
+ assert.equal(res.statusCode, 200)
+ ;})
+
+ .POST('/', function (res) {
+ assert.equal(res.statusCode, 500);
+ })
+
+ .GET('/api/token', [
+ {data: {token: 'foo'}},
+ {data: {token: 'bar'}}
+ ], [
+ {status: 500, body: 'error'},
+ {status: 200, body: 'ok'}
+ ]);
+
+ Output =>
+
+ GET /
+ ✓ 1 assert
+
+ POST /
+ ✓ 1 assert
+
+ GET /api/token
+ ✓ 3 assert
+
+ ✓ OK » 7 viril • 0 pending
Please sign in to comment.
Something went wrong with that request. Please try again.