Cleaning up explicit dependencies

This commit is contained in:
Davis W. Frank and Sheel Choksi
2013-07-01 15:55:43 -07:00
parent 661a884416
commit 2916a8a1ff
8 changed files with 20 additions and 16 deletions

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().toBeNaN = function() {
getJasmineRequireObj().toBeNaN = function(j$) {
function toBeNaN() {
return {

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().toHaveBeenCalled = function() {
getJasmineRequireObj().toHaveBeenCalled = function(j$) {
function toHaveBeenCalled() {
return {

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().toHaveBeenCalledWith = function() {
getJasmineRequireObj().toHaveBeenCalledWith = function(j$) {
function toHaveBeenCalledWith(util) {
return {

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().toThrow = function() {
getJasmineRequireObj().toThrow = function(j$) {
function toThrow(util) {
return {

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().toThrowError = function() {
getJasmineRequireObj().toThrowError = function(j$) {
function toThrowError (util) {
return {
compare: function(actual) {

View File

@@ -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$;
};