CB-8528 Add a shim for `jasmine.Expectation.addMatchers` being moved in jasmine 2.2.0
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 @@
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;
}