You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/03/04 17:43:29 UTC

[5/5] cordova-plugin-test-framework git commit: CB-8528 Add a shim for `jasmine.Expectation.addMatchers` being moved in jasmine 2.2.0

CB-8528 Add a shim for `jasmine.Expectation.addMatchers` being moved in jasmine 2.2.0


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/commit/114a4288
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/tree/114a4288
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/diff/114a4288

Branch: refs/heads/master
Commit: 114a428818068b05315e305bdd34e9f1677f1d72
Parents: c1a4d12
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Mar 4 11:42:33 2015 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Mar 4 11:42:33 2015 -0500

----------------------------------------------------------------------
 www/jasmine_helpers.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework/blob/114a4288/www/jasmine_helpers.js
----------------------------------------------------------------------
diff --git a/www/jasmine_helpers.js b/www/jasmine_helpers.js
index 5073819..7113624 100644
--- a/www/jasmine_helpers.js
+++ b/www/jasmine_helpers.js
@@ -42,6 +42,11 @@ exports.setUpJasmine = function() {
         return true;
     };
 
+    // Jasmine 2.2.0 moved this symbol, so we add a shim here.
+    jasmine.Expectation.addMatchers = jasmine.Expectation.addMatchers || function() {
+        return jasmine.addMatchers.apply(this, arguments);
+    };
+
     return jasmineInterface;
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org