Permalink
Browse files

Add module version

  • Loading branch information...
1 parent 1736f8c commit fdf704d7253843949cc1470162530b65ed6958ad @hokaccha committed Oct 10, 2011
Showing with 10 additions and 0 deletions.
  1. +5 −0 lib/chain-tiny.js
  2. +5 −0 test/basic.js
View
@@ -22,6 +22,11 @@ var Chain = function(fn) {
};
/**
+ * Module version
+ */
+Chain.version = '0.1.0';
+
+/**
* Function push to stack.
*
* @param {Function} fn
View
@@ -2,6 +2,11 @@ var nodeunit = require('nodeunit');
var chain = require('../index');
module.exports = nodeunit.testCase({
+ exports: function(t) {
+ t.equal(typeof chain, 'function');
+ t.ok(/^\d+\.\d+\.\d+/.test(chain.version));
+ t.done();
+ },
instance: function(t) {
t.ok(chain() instanceof chain);
t.ok(new chain instanceof chain);

0 comments on commit fdf704d

Please sign in to comment.