Comparing version 0.0.1-alpha6 to 0.0.1
0.0.1 / 2011-11-22 | ||
================== | ||
* Added `--timeout` second shorthand support, ex `--timeout 3s`. | ||
* Fixed "test end" event for uncaughtExceptions. Closes #61 | ||
0.0.1-alpha6 / 2011-11-19 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -12,3 +12,3 @@ | ||
exports.version = '0.0.1-alpha6'; | ||
exports.version = '0.0.1'; | ||
@@ -15,0 +15,0 @@ exports.interfaces = require('./interfaces'); |
@@ -384,2 +384,3 @@ | ||
self.fail(self.test, err); | ||
self.emit('test end', self.test); | ||
self.emit('end'); | ||
@@ -386,0 +387,0 @@ }); |
@@ -67,5 +67,5 @@ | ||
/** | ||
* Set timeout `ms`. | ||
* Set timeout `ms` or short-hand such as "2s". | ||
* | ||
* @param {Number} ms | ||
* @param {Number|String} ms | ||
* @return {Suite} for chaining | ||
@@ -76,3 +76,4 @@ * @api private | ||
Suite.prototype.timeout = function(ms){ | ||
this._timeout = ms; | ||
if (String(ms).match(/s$/)) ms = parseFloat(ms) * 1000; | ||
this._timeout = parseInt(ms, 10); | ||
return this; | ||
@@ -79,0 +80,0 @@ }; |
{ | ||
"name": "mocha" | ||
, "version": "0.0.1-alpha6" | ||
, "version": "0.0.1" | ||
, "description": "Test framework inspired by JSpec, Expresso, & Qunit" | ||
@@ -5,0 +5,0 @@ , "keywords": ["test", "bdd", "tdd", "tap"] |
Sorry, the diff of this file is not supported yet
111710
4151