Comparing version 0.3.0 to 0.3.1
@@ -844,3 +844,3 @@ !function (name, definition) { | ||
} catch (err) { | ||
if (constructor && 'function' === typeof constructor) { | ||
if (constructor && 'function' === typeof constructor && constructor.constructor != RegExp) { | ||
this.assert( | ||
@@ -854,4 +854,4 @@ err instanceof constructor && err.name == constructor.name | ||
constructor.exec(err.message) | ||
, 'expected ' + this.inspect + ' to throw error matching ' + inspect(constructor) + ' but got ' + inspect(err.message) | ||
, 'expected ' + this.inspect + ' to throw error not matching ' + inspect(constructor) ); | ||
, 'expected ' + this.inspect + ' to throw error matching ' + constructor + ' but got ' + inspect(err.message) | ||
, 'expected ' + this.inspect + ' to throw error not matching ' + constructor); | ||
return this; | ||
@@ -902,3 +902,3 @@ } else { | ||
exports.version = '0.3.0'; | ||
exports.version = '0.3.1'; | ||
@@ -905,0 +905,0 @@ exports.Assertion = require('./assertion'); |
0.3.1 / 2012-02-07 | ||
================== | ||
* node 0.4.x compat | ||
0.3.0 / 2012-02-07 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -791,3 +791,3 @@ /*! | ||
} catch (err) { | ||
if (constructor && 'function' === typeof constructor) { | ||
if (constructor && 'function' === typeof constructor && constructor.constructor != RegExp) { | ||
this.assert( | ||
@@ -801,4 +801,4 @@ err instanceof constructor && err.name == constructor.name | ||
constructor.exec(err.message) | ||
, 'expected ' + this.inspect + ' to throw error matching ' + inspect(constructor) + ' but got ' + inspect(err.message) | ||
, 'expected ' + this.inspect + ' to throw error not matching ' + inspect(constructor) ); | ||
, 'expected ' + this.inspect + ' to throw error matching ' + constructor + ' but got ' + inspect(err.message) | ||
, 'expected ' + this.inspect + ' to throw error not matching ' + constructor); | ||
return this; | ||
@@ -805,0 +805,0 @@ } else { |
@@ -10,3 +10,3 @@ /*! | ||
exports.version = '0.3.0'; | ||
exports.version = '0.3.1'; | ||
@@ -13,0 +13,0 @@ exports.Assertion = require('./assertion'); |
@@ -6,3 +6,3 @@ { | ||
"keywords": [ "test", "assertion", "assert", "testing" ], | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
126657