Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Release 0.12.1

Tj Holowaychukef598ec7e6b2
diff --git a/History.md b/History.md
index 8adcec57..401f0d56 100644
--- a/History.md
+++ b/History.md
@@ -1,4 +1,11 @@
+0.12.1 / 2012-02-14
+==================
+
+ * Added `npm docs mocha` support [TooTallNate]
+ * Added a `Context` object used for hook and test-case this. Closes #253
+ * Fixed `Suite#clone()` `.ctx` reference. Closes #262
+
0.12.0 / 2012-02-02
==================
diff --git a/lib/mocha.js b/lib/mocha.js
index 46b0d268..ee46e1fa 100644
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@ -9,7 +9,7 @@
* Library version.
*/
-exports.version = '0.12.0';
+exports.version = '0.12.1';
exports.utils = require('./utils');
exports.interfaces = require('./interfaces');
diff --git a/mocha.js b/mocha.js
index 58c0985b..abdc28cb 100644
--- a/mocha.js
+++ b/mocha.js
@@ -849,7 +849,7 @@ require.register("mocha.js", function(module, exports, require){
* Library version.
*/
-exports.version = '0.12.0';
+exports.version = '0.12.1';
exports.utils = require('./utils');
exports.interfaces = require('./interfaces');
@@ -2834,6 +2834,7 @@ Suite.prototype.constructor = Suite;
Suite.prototype.clone = function(){
var suite = new Suite(this.title);
debug('clone');
+ suite.ctx = this.ctx;
suite.timeout(this.timeout());
suite.bail(this.bail());
return suite;
@@ -3218,7 +3219,7 @@ function ignored(path){
* Lookup files in the given `dir`.
*
* @return {Array}
- * @api public
+ * @api private
*/
exports.files = function(dir, ret){
diff --git a/package.json b/package.json
index 886965f2..490745aa 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mocha"
- , "version": "0.12.0"
+ , "version": "0.12.1"
, "description": "simple, flexible, fun test framework"
, "keywords": ["test", "bdd", "tdd", "tap"]
, "author": "TJ Holowaychuk <[email protected]>"