Cleaning up explicit dependencies
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
getJasmineRequireObj().requireMatchers = function(jRequire) {
|
||||
getJasmineRequireObj().requireMatchers = function(jRequire, j$) {
|
||||
var availableMatchers = [
|
||||
"toBe",
|
||||
"toBeCloseTo",
|
||||
@@ -22,7 +22,7 @@ getJasmineRequireObj().requireMatchers = function(jRequire) {
|
||||
|
||||
for (var i = 0; i < availableMatchers.length; i++) {
|
||||
var name = availableMatchers[i];
|
||||
matchers[name] = jRequire[name]();
|
||||
matchers[name] = jRequire[name](j$);
|
||||
}
|
||||
|
||||
return matchers;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
getJasmineRequireObj().toBeNaN = function() {
|
||||
getJasmineRequireObj().toBeNaN = function(j$) {
|
||||
|
||||
function toBeNaN() {
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
getJasmineRequireObj().toHaveBeenCalled = function() {
|
||||
getJasmineRequireObj().toHaveBeenCalled = function(j$) {
|
||||
|
||||
function toHaveBeenCalled() {
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
getJasmineRequireObj().toHaveBeenCalledWith = function() {
|
||||
getJasmineRequireObj().toHaveBeenCalledWith = function(j$) {
|
||||
|
||||
function toHaveBeenCalledWith(util) {
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
getJasmineRequireObj().toThrow = function() {
|
||||
getJasmineRequireObj().toThrow = function(j$) {
|
||||
|
||||
function toThrow(util) {
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
getJasmineRequireObj().toThrowError = function() {
|
||||
getJasmineRequireObj().toThrowError = function(j$) {
|
||||
function toThrowError (util) {
|
||||
return {
|
||||
compare: function(actual) {
|
||||
|
||||
@@ -30,7 +30,7 @@ getJasmineRequireObj().core = function(jRequire) {
|
||||
j$.Suite = jRequire.Suite();
|
||||
j$.version = jRequire.version();
|
||||
|
||||
j$.matchers = jRequire.requireMatchers(jRequire);
|
||||
j$.matchers = jRequire.requireMatchers(jRequire, j$);
|
||||
|
||||
return j$;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user