diff options
Diffstat (limited to 'spec/env/common.js')
-rw-r--r-- | spec/env/common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/env/common.js b/spec/env/common.js index a603fc0..e551837 100644 --- a/spec/env/common.js +++ b/spec/env/common.js @@ -44,7 +44,7 @@ global.shouldThrow = function(callback, type, msg) { throw new Error('Type failure'); } if (msg && !(msg.test ? msg.test(err.message) : msg === err.message)) { - throw new Error('Message failure'); + equal(msg, err.message); } } if (failed) { |