Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 26, 2012
1 parent fbf3b1d commit 58d1611
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Expand Up @@ -7,6 +7,15 @@ var methods = require('./lib/methods')
, Test = require('./lib/test')
, http = require('http');

/**
* Test against the given `app`,
* returning a new `Test`.
*
* @param {Function|Server} app
* @return {Test}
* @api public
*/

module.exports = function(app){
if ('function' == typeof app) app = http.createServer(app);
var obj = {};
Expand Down

0 comments on commit 58d1611

Please sign in to comment.