From 83c0ea7f9142a66e35b395fc61a4c7bc40bd57e3 Mon Sep 17 00:00:00 2001 From: Sheel Choksi Date: Sun, 9 Feb 2014 14:06:40 -0800 Subject: [PATCH] Fix error message in jasmine.any The expected any 'class' was not being included in the error message due to accessing the wrong property --- lib/jasmine-core/jasmine.js | 2 +- spec/core/AnySpec.js | 1 + src/core/Any.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 3460c7c9..ac4b279d 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -819,7 +819,7 @@ getJasmineRequireObj().Any = function() { }; Any.prototype.jasmineToString = function() { - return ''; + return ''; }; return Any; diff --git a/spec/core/AnySpec.js b/spec/core/AnySpec.js index f4960f2c..139a4133 100644 --- a/spec/core/AnySpec.js +++ b/spec/core/AnySpec.js @@ -40,6 +40,7 @@ describe("Any", function() { var any = new j$.Any(Number); expect(any.jasmineToString()).toMatch(''; + return ''; }; return Any;