Skip to content

Commit

Permalink
Test main module index.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Nov 12, 2011
1 parent 99c7b37 commit 8f32feb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
* Module dependencies.
*/
var Descriptor = require('./descriptor');
var Link = require('./link');


/**
* Expose constructors.
*/
exports.Descriptor = Descriptor;
exports.Link = Link;

/**
* Expose middleware.
*/
exports.lrdd = require('./middleware/lrdd');
20 changes: 20 additions & 0 deletions test/index-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var vows = require('vows');
var assert = require('assert');
var lrdd = require('index');


vows.describe('connect-lrdd').addBatch({

'module': {
'should export lrdd middleware': function () {
assert.isFunction(lrdd.lrdd);
},
'should export Descriptor constructor': function () {
assert.isFunction(lrdd.Descriptor);
},
'should export Link constructor': function () {
assert.isFunction(lrdd.Link);
},
},

}).export(module);

0 comments on commit 8f32feb

Please sign in to comment.