From b8b4457b6bc70f5b93355b2ac941585e08dc6bcc Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Wed, 25 Aug 2010 18:18:49 -0700 Subject: [PATCH] Regenerate jasmine.js. --- lib/jasmine.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/jasmine.js b/lib/jasmine.js index 60bdf1d..faa943f 100644 --- a/lib/jasmine.js +++ b/lib/jasmine.js @@ -1386,9 +1386,11 @@ jasmine.Matchers.prototype.toThrow = function(expected) { result = (expected === jasmine.undefined || this.env.equals_(exception.message || exception, expected.message || expected)); } + var not = this.isNot ? "not " : ""; + this.message = function() { if (exception && (expected === jasmine.undefined || !this.env.equals_(exception.message || exception, expected.message || expected))) { - return ["Expected function to throw", expected ? expected.message || expected : " an exception", ", but it threw", exception.message || exception].join(' '); + return ["Expected function " + not + "to throw", expected ? expected.message || expected : " an exception", ", but it threw", exception.message || exception].join(' '); } else { return "Expected function to throw an exception."; } @@ -2415,5 +2417,5 @@ jasmine.version_= { "major": 0, "minor": 11, "build": 1, - "revision": 1282784791 + "revision": 1282785506 };