Cleanup: whitespace
This commit is contained in:
@@ -64,7 +64,7 @@ getJasmineRequireObj().CallTracker = function(j$) {
|
||||
*/
|
||||
this.allArgs = function() {
|
||||
var callArgs = [];
|
||||
for(var i = 0; i < calls.length; i++){
|
||||
for(var i = 0; i < calls.length; i++) {
|
||||
callArgs.push(calls[i].args);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ getJasmineRequireObj().Expector = function(j$) {
|
||||
this.util = options.util || { buildFailureMessage: function() {} };
|
||||
this.customEqualityTesters = options.customEqualityTesters || [];
|
||||
this.actual = options.actual;
|
||||
this.addExpectationResult = options.addExpectationResult || function(){};
|
||||
this.addExpectationResult = options.addExpectationResult || function() {};
|
||||
this.filters = new j$.ExpectationFilterChain();
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ getJasmineRequireObj().MockDate = function() {
|
||||
FakeDate.parse = GlobalDate.parse;
|
||||
FakeDate.UTC = GlobalDate.UTC;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return MockDate;
|
||||
};
|
||||
|
||||
@@ -113,7 +113,7 @@ getJasmineRequireObj().pp = function(j$) {
|
||||
}
|
||||
this.format(array[i]);
|
||||
}
|
||||
if(array.length > length){
|
||||
if(array.length > length) {
|
||||
this.append(', ...');
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ getJasmineRequireObj().pp = function(j$) {
|
||||
|
||||
i++;
|
||||
}, this );
|
||||
if (set.size > size){
|
||||
if (set.size > size) {
|
||||
this.append(', ...');
|
||||
}
|
||||
this.append(' )');
|
||||
@@ -178,7 +178,7 @@ getJasmineRequireObj().pp = function(j$) {
|
||||
|
||||
i++;
|
||||
}, this );
|
||||
if (map.size > size){
|
||||
if (map.size > size) {
|
||||
this.append(', ...');
|
||||
}
|
||||
this.append(' )');
|
||||
|
||||
@@ -22,7 +22,7 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
this.queueableFns = queueableFns.concat(attrs.cleanupFns || []);
|
||||
this.firstCleanupIx = queueableFns.length;
|
||||
this.onComplete = attrs.onComplete || emptyFn;
|
||||
this.clearStack = attrs.clearStack || function(fn) {fn();};
|
||||
this.clearStack = attrs.clearStack || function(fn) { fn(); };
|
||||
this.onException = attrs.onException || emptyFn;
|
||||
this.userContext = attrs.userContext || new j$.UserContext();
|
||||
this.timeout = attrs.timeout || {setTimeout: setTimeout, clearTimeout: clearTimeout};
|
||||
|
||||
@@ -104,6 +104,6 @@ getJasmineRequireObj().StackTrace = function(j$) {
|
||||
|
||||
return messageLines.length;
|
||||
}
|
||||
|
||||
|
||||
return StackTrace;
|
||||
};
|
||||
|
||||
@@ -171,7 +171,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
||||
* @name jasmine.truthy
|
||||
* @function
|
||||
*/
|
||||
j$.truthy = function() {return new j$.Truthy();};
|
||||
j$.truthy = function() { return new j$.Truthy(); };
|
||||
|
||||
/**
|
||||
* Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}),
|
||||
@@ -179,7 +179,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
||||
* @name jasmine.falsy
|
||||
* @function
|
||||
*/
|
||||
j$.falsy = function() {return new j$.Falsy();};
|
||||
j$.falsy = function() { return new j$.Falsy(); };
|
||||
|
||||
/**
|
||||
* Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}),
|
||||
@@ -187,7 +187,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
||||
* @name jasmine.empty
|
||||
* @function
|
||||
*/
|
||||
j$.empty = function() {return new j$.Empty();};
|
||||
j$.empty = function() { return new j$.Empty(); };
|
||||
|
||||
/**
|
||||
* Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}),
|
||||
@@ -195,7 +195,7 @@ getJasmineRequireObj().base = function(j$, jasmineGlobal) {
|
||||
* @name jasmine.notEmpty
|
||||
* @function
|
||||
*/
|
||||
j$.notEmpty = function() {return new j$.NotEmpty();};
|
||||
j$.notEmpty = function() { return new j$.NotEmpty(); };
|
||||
|
||||
/**
|
||||
* Get a matcher, usable in any {@link matchers|matcher} that uses Jasmine's equality (e.g. {@link matchers#toEqual|toEqual}, {@link matchers#toContain|toContain}, or {@link matchers#toHaveBeenCalledWith|toHaveBeenCalledWith}),
|
||||
|
||||
@@ -108,7 +108,7 @@ jasmineRequire.HtmlReporter = function(j$) {
|
||||
console.error('Spec \'' + result.fullName + '\' has no expectations.');
|
||||
}
|
||||
|
||||
if (!symbols){
|
||||
if (!symbols) {
|
||||
symbols = find('.jasmine-symbol-summary');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user