From 144ff174f6706393474e41790604003182dce2c8 Mon Sep 17 00:00:00 2001 From: slackersoft Date: Sun, 6 Oct 2013 11:05:35 -0700 Subject: [PATCH] Make `addCustomEqualityTester` available on `jasmine` global - User shouldn't have to `jasmine.getEnv()` to add one --- lib/jasmine-core/boot.js | 5 +++++ spec/support/dev_boot.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/jasmine-core/boot.js b/lib/jasmine-core/boot.js index aec7ed6d..9dce2ab1 100644 --- a/lib/jasmine-core/boot.js +++ b/lib/jasmine-core/boot.js @@ -69,6 +69,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. }, clock: env.clock, + + addCustomEqualityTester: function(tester) { + env.addCustomEqualityTester(tester); + }, + jsApiReporter: new jasmine.JsApiReporter({ timer: new jasmine.Timer() }) diff --git a/spec/support/dev_boot.js b/spec/support/dev_boot.js index 83e5eed0..b09f0318 100644 --- a/spec/support/dev_boot.js +++ b/spec/support/dev_boot.js @@ -48,6 +48,11 @@ }, clock: env.clock, + + addCustomEqualityTester: function(tester) { + env.addCustomEqualityTester(tester); + }, + jsApiReporter: new jasmine.JsApiReporter({ timer: new jasmine.Timer() })