diff --git a/lib/jasmine-core/boot.js b/lib/jasmine-core/boot.js index aec7ed6d..da45e5a5 100644 --- a/lib/jasmine-core/boot.js +++ b/lib/jasmine-core/boot.js @@ -60,10 +60,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. return env.pending(); }, - addMatchers: function(matchers) { - return env.addMatchers(matchers); - }, - spyOn: function(obj, methodName) { return env.spyOn(obj, methodName); }, @@ -80,6 +76,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. extend(window, jasmineInterface); } + jasmine.addCustomEqualityTester = function(tester) { + env.addCustomEqualityTester(tester); + }; + + jasmine.addMatchers = function(matchers) { + return env.addMatchers(matchers); + }; + var queryString = new jasmine.QueryString({ getWindowLocation: function() { return window.location; } }); diff --git a/lib/jasmine-core/boot/boot.js b/lib/jasmine-core/boot/boot.js index 08391573..1a188cab 100644 --- a/lib/jasmine-core/boot/boot.js +++ b/lib/jasmine-core/boot/boot.js @@ -38,10 +38,6 @@ return env.pending(); }, - addMatchers: function(matchers) { - return env.addMatchers(matchers); - }, - spyOn: function(obj, methodName) { return env.spyOn(obj, methodName); }, @@ -58,6 +54,14 @@ extend(window, jasmineInterface); } + jasmine.addCustomEqualityTester = function(tester) { + env.addCustomEqualityTester(tester); + }; + + jasmine.addMatchers = function(matchers) { + return env.addMatchers(matchers); + }; + var queryString = new jasmine.QueryString({ getWindowLocation: function() { return window.location; } }); diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index bf1ddb4e..9f47affd 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -187,10 +187,6 @@ getJasmineRequireObj().base = function(j$) { } return obj; }; - - j$.addCustomEqualityTester = function(tester) { - j$.getEnv().addCustomEqualityTester(tester); - }; }; getJasmineRequireObj().util = function() { diff --git a/src/core/base.js b/src/core/base.js index 00763e5b..d36326b3 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -96,8 +96,4 @@ getJasmineRequireObj().base = function(j$) { } return obj; }; - - j$.addCustomEqualityTester = function(tester) { - j$.getEnv().addCustomEqualityTester(tester); - }; };