Cleanup: whitespace

This commit is contained in:
Elliot Nelson
2019-05-18 08:10:11 -04:00
parent e04d3d8a62
commit 1e855aa9b8
8 changed files with 13 additions and 13 deletions

View File

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

View File

@@ -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();
}

View File

@@ -76,7 +76,7 @@ getJasmineRequireObj().MockDate = function() {
FakeDate.parse = GlobalDate.parse;
FakeDate.UTC = GlobalDate.UTC;
}
}
}
return MockDate;
};

View File

@@ -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(' )');

View File

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

View File

@@ -104,6 +104,6 @@ getJasmineRequireObj().StackTrace = function(j$) {
return messageLines.length;
}
return StackTrace;
};

View File

@@ -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}),

View File

@@ -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');
}