cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [5/5] cordova-plugin-test-framework git commit: CB-8528 Add a shim for `jasmine.Expectation.addMatchers` being moved in jasmine 2.2.0
Date Wed, 04 Mar 2015 16:43:29 GMT
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 <agrieve@chromium.org>
Authored: Wed Mar 4 11:42:33 2015 -0500
Committer: Andrew Grieve <agrieve@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


Mime
View raw message